diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2014-12-16 03:35:50 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2014-12-16 03:35:50 +0000 |
commit | 663a84b8fd5f3d0f3eedcd133222d8680920c26b (patch) | |
tree | 980de51bc9b589078d82d7b1b151f428f0a2366f /usr.sbin/httpd/proc.c | |
parent | dc7523783ddba6534528809b9a39eeb52b6d091f (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.c | 4 |
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); |