diff options
Diffstat (limited to 'net/nettest')
-rw-r--r-- | net/nettest/files/patch-ac | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/net/nettest/files/patch-ac b/net/nettest/files/patch-ac index 53e3af765c7a..a669d597b7b6 100644 --- a/net/nettest/files/patch-ac +++ b/net/nettest/files/patch-ac @@ -19,6 +19,23 @@ main(argc, argv) *************** +*** 271,277 **** + # endif + #endif + if (daemon) { +! if (setpgrp() < 0) + perror("setpgrp"); + if ((c = open(_PATH_TTY, O_RDWR)) >= 0) { + (void)ioctl(c, TIOCNOTTY, (char *)0); +--- 272,278 ---- + # endif + #endif + if (daemon) { +! if (setpgrp(0, getpid()) < 0) + perror("setpgrp"); + if ((c = open(_PATH_TTY, O_RDWR)) >= 0) { + (void)ioctl(c, TIOCNOTTY, (char *)0); +*************** *** 416,422 **** ) error("setsockopt (IP_OPTIONS)"); |