POSIX.1 changed getpgrp
This commit is contained in:
parent
db2b1de8d3
commit
df81ab8248
@ -120,8 +120,8 @@ setjobctl(on) {
|
||||
return;
|
||||
}
|
||||
if (initialpgrp == -1)
|
||||
initialpgrp = getpgrp(0);
|
||||
else if (initialpgrp != getpgrp(0)) {
|
||||
initialpgrp = getpgrp();
|
||||
else if (initialpgrp != getpgrp()) {
|
||||
killpg(initialpgrp, SIGTTIN);
|
||||
continue;
|
||||
}
|
||||
@ -626,7 +626,7 @@ waitforjob(jp)
|
||||
register struct job *jp;
|
||||
{
|
||||
#if JOBS
|
||||
int mypgrp = getpgrp(0);
|
||||
int mypgrp = getpgrp();
|
||||
#endif
|
||||
int status;
|
||||
int st;
|
||||
|
Loading…
Reference in New Issue
Block a user