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:
pfg 2014-10-23 02:53:57 +00:00
parent f56339f043
commit fea98e7966

View File

@ -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