#include #include #include #include #include #include #include int main(int argc, char *argv[]) { int s[2]; char **args1, **args2; int firstarg, lastarg; int i; if (socketpair(PF_UNIX, SOCK_STREAM, 0, s) < 0) { fprintf(stderr,"socketpair failed: %s\n",strerror(errno)); exit(1); } /* Make this configurable later, but for now it's fine. */ /* Find the first program to execute. */ firstarg = 1; for(i=1;i