aboutsummaryrefslogtreecommitdiff
path: root/networking/nc.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/nc.c')
-rw-r--r--networking/nc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/networking/nc.c b/networking/nc.c
index 5fd8bd759..0dacaf117 100644
--- a/networking/nc.c
+++ b/networking/nc.c
@@ -216,10 +216,8 @@ int nc_main(int argc, char **argv)
216 if (execparam) { 216 if (execparam) {
217 pid_t pid; 217 pid_t pid;
218 /* With more than one -l, repeatedly act as server */ 218 /* With more than one -l, repeatedly act as server */
219 if (do_listen > 1 && (pid = vfork()) != 0) { 219 if (do_listen > 1 && (pid = xvfork()) != 0) {
220 /* parent or error */ 220 /* parent */
221 if (pid < 0)
222 bb_perror_msg_and_die("vfork");
223 /* prevent zombies */ 221 /* prevent zombies */
224 signal(SIGCHLD, SIG_IGN); 222 signal(SIGCHLD, SIG_IGN);
225 close(cfd); 223 close(cfd);