aboutsummaryrefslogtreecommitdiff
path: root/net/nettest
diff options
context:
space:
mode:
authorMatt Jacob <mjacob@FreeBSD.org>1999-12-22 19:27:58 +0000
committerMatt Jacob <mjacob@FreeBSD.org>1999-12-22 19:27:58 +0000
commit53a6fdf2146ddde490f0f5be6e9eda09c04d1714 (patch)
treece2d86423ac035d5fc1739dc52b169191affb0d5 /net/nettest
parent6794f6d6907a6f3e5b6c767d448ba220aed45423 (diff)
downloadports-53a6fdf2146ddde490f0f5be6e9eda09c04d1714.tar.gz
ports-53a6fdf2146ddde490f0f5be6e9eda09c04d1714.zip
fix setpgrp usage
Notes
Notes: svn path=/head/; revision=23827
Diffstat (limited to 'net/nettest')
-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)");