diff options
author | mjacob <mjacob@FreeBSD.org> | 1999-12-23 03:27:58 +0800 |
---|---|---|
committer | mjacob <mjacob@FreeBSD.org> | 1999-12-23 03:27:58 +0800 |
commit | 2abd771b3ed8e5216b47c0d9029573283c9c1351 (patch) | |
tree | eb194322847e7fb2df3d7ac001768eec392a6d47 /net/nettest/files | |
parent | a4d3354ce03cbdef45e1420915b4086da1456175 (diff) | |
download | freebsd-ports-gnome-2abd771b3ed8e5216b47c0d9029573283c9c1351.tar.gz freebsd-ports-gnome-2abd771b3ed8e5216b47c0d9029573283c9c1351.tar.zst freebsd-ports-gnome-2abd771b3ed8e5216b47c0d9029573283c9c1351.zip |
fix setpgrp usage
Diffstat (limited to 'net/nettest/files')
-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)"); |