+ if (script != NULL && pid != _not(pid_t)) {
+ fprintf(stderr, "-p or <script>: choose one\n");
+ return 1;
+ }
+
+ int socket;
+
+ if (pid == _not(pid_t))
+ socket = -1;
+ else {
+ socket = _syscall(::socket(PF_UNIX, SOCK_STREAM, 0));
+
+ struct sockaddr_un address;
+ memset(&address, 0, sizeof(address));
+ address.sun_family = AF_UNIX;
+ sprintf(address.sun_path, "/tmp/.s.cy.%u", pid);
+
+ _syscall(connect(socket, reinterpret_cast<sockaddr *>(&address), SUN_LEN(&address)));
+ }