POSIX.1 changed getpgrp

This commit is contained in:
jtc 1994-05-12 16:32:42 +00:00
parent db2b1de8d3
commit df81ab8248

View File

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