This commit is contained in:
maxim 2004-09-24 13:22:45 +00:00
parent f9d7c3b4cd
commit 5586535f4c

View File

@ -504,13 +504,13 @@ main(int argc, char *argv[], char **envp)
(struct sockaddr *)&his_addr,
&addrlen);
if (fd >= 0) {
if ((pid = fork()) == 0) {
/* child */
(void) dup2(fd, 0);
(void) dup2(fd, 1);
close(ctl_sock[i]);
} else
close(fd);
if ((pid = fork()) == 0) {
/* child */
(void) dup2(fd, 0);
(void) dup2(fd, 1);
close(ctl_sock[i]);
} else
close(fd);
}
}
if (pid == 0)