summaryrefslogtreecommitdiff
path: root/usr.sbin/httpd/proc.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2014-12-16 03:35:50 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2014-12-16 03:35:50 +0000
commit663a84b8fd5f3d0f3eedcd133222d8680920c26b (patch)
tree980de51bc9b589078d82d7b1b151f428f0a2366f /usr.sbin/httpd/proc.c
parentdc7523783ddba6534528809b9a39eeb52b6d091f (diff)
Replace setpgrp(0, getpid()) with setpgid(0, 0). OK deraadt@ tedu@
Diffstat (limited to 'usr.sbin/httpd/proc.c')
-rw-r--r--usr.sbin/httpd/proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/httpd/proc.c b/usr.sbin/httpd/proc.c
index d0994f89d04..fc3c0e4a8db 100644
--- a/usr.sbin/httpd/proc.c
+++ b/usr.sbin/httpd/proc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: proc.c,v 1.5 2014/10/25 03:23:49 lteo Exp $ */
+/* $OpenBSD: proc.c,v 1.6 2014/12/16 03:35:49 millert Exp $ */
/*
* Copyright (c) 2010 - 2014 Reyk Floeter <reyk@openbsd.org>
@@ -351,7 +351,7 @@ proc_run(struct privsep *ps, struct privsep_proc *p,
fatal("proc_run: cannot fork");
case 0:
/* Set the process group of the current process */
- setpgrp(0, getpid());
+ setpgid(0, 0);
break;
default:
return (pid);