// different after the connect) by putting a name for it comma-separated
// next to "v1". Simple extension can be done by having the script
// side say something about it in the ack xdata, which we currently ignore.
- putenv(m_asprintf("PREFORK_INTERP=v1 %d,%d %s",
- sfd, call_fd, socket_path, watcher_stdin, watcher_stderr));
+ putenv(m_asprintf("PREFORK_INTERP=v1 %d,%d,%d,%d",
+ sfd, call_fd, watcher_stdin, watcher_stderr));
execvp(executor_argv[0], (char**)executor_argv);
diee("execute %s", executor_argv[0]);
close(watcher_stdin[1]);
close(watcher_stderr[0]);
if (dup2(watcher_stdin[0], 0) != 0 ||
- dup2(watcher_stderr[1], 1) != 0)
+ dup2(watcher_stderr[1], 1) != 1)
diee("initial dup2() for watcher");
close(watcher_stdin[0]);
close(watcher_stderr[1]);