MFC r271789:
lpr: replace setpgrp(2) with setpgid(2). setpgid(2) is more portable than setpgrp(2). The BSD variant of setpgrp is a wrapper for setpgid(2) anyways.
This commit is contained in:
parent
f56339f043
commit
fea98e7966
@ -176,7 +176,7 @@ printjob(struct printer *pp)
|
||||
}
|
||||
if(setgid(getegid()) != 0) err(1, "setgid() failed");
|
||||
printpid = getpid(); /* for use with lprm */
|
||||
setpgrp(0, printpid);
|
||||
setpgid((pid_t)0, printpid);
|
||||
|
||||
/*
|
||||
* At initial lpd startup, printjob may be called with various
|
||||
|
Loading…
x
Reference in New Issue
Block a user