aboutsummaryrefslogtreecommitdiffstats
path: root/net/nettest/files
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>1999-12-23 03:27:58 +0800
committermjacob <mjacob@FreeBSD.org>1999-12-23 03:27:58 +0800
commit2abd771b3ed8e5216b47c0d9029573283c9c1351 (patch)
treeeb194322847e7fb2df3d7ac001768eec392a6d47 /net/nettest/files
parenta4d3354ce03cbdef45e1420915b4086da1456175 (diff)
downloadfreebsd-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-ac17
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)");