Changeset 2648 for trunk/src/kash/jobs.c
- Timestamp:
- Sep 9, 2012, 5:22:30 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/jobs.c
r2290 r2648 150 150 if (sh_getpgid(psh, 0) != psh->rootpid && sh_setpgid(psh, 0, psh->rootpid) == -1) 151 151 error(psh, "Cannot set process group (%s) at %d", 152 s trerror(errno), __LINE__);152 sh_strerror(psh, errno), __LINE__); 153 153 if (sh_tcsetpgrp(psh, psh->ttyfd, psh->rootpid) == -1) 154 154 error(psh, "Cannot set tty process group (%s) at %d", 155 s trerror(errno), __LINE__);155 sh_strerror(psh, errno), __LINE__); 156 156 } else { /* turning job control off */ 157 157 if (sh_getpgid(psh, 0) != psh->initialpgrp && sh_setpgid(psh, 0, psh->initialpgrp) == -1) 158 158 error(psh, "Cannot set process group (%s) at %d", 159 s trerror(errno), __LINE__);159 sh_strerror(psh, errno), __LINE__); 160 160 if (sh_tcsetpgrp(psh, psh->ttyfd, psh->initialpgrp) == -1) 161 161 error(psh, "Cannot set tty process group (%s) at %d", 162 s trerror(errno), __LINE__);162 sh_strerror(psh, errno), __LINE__); 163 163 shfile_close(&psh->fdtab, psh->ttyfd); 164 164 psh->ttyfd = -1; … … 209 209 if (i >= jp->nprocs) { 210 210 error(psh, "Cannot set tty process group (%s) at %d", 211 s trerror(errno), __LINE__);211 sh_strerror(psh, errno), __LINE__); 212 212 } 213 213 restartjob(psh, jp); … … 301 301 break; 302 302 if (i >= jp->nprocs) 303 error(psh, "Cannot continue job (%s)", s trerror(errno));303 error(psh, "Cannot continue job (%s)", sh_strerror(psh, errno)); 304 304 for (ps = jp->ps, i = jp->nprocs ; --i >= 0 ; ps++) { 305 305 if (WIFSTOPPED(ps->status)) { … … 485 485 if (sh_tcsetpgrp(psh, psh->ttyfd, sh_getpid(psh)) == -1) 486 486 error(psh, "Cannot set tty process group (%s) at %d", 487 s trerror(errno), __LINE__);487 sh_strerror(psh, errno), __LINE__); 488 488 TRACE((psh, "repaired tty process group\n")); 489 489 silent = 1; … … 854 854 if (sh_tcsetpgrp(psh, psh->ttyfd, pgrp) == -1) 855 855 error(psh, "Cannot set tty process group (%s) at %d", 856 s trerror(errno), __LINE__);856 sh_strerror(psh, errno), __LINE__); 857 857 } 858 858 setsignal(psh, SIGTSTP, vforked); … … 927 927 if (sh_tcsetpgrp(psh, psh->ttyfd, mypgrp) == -1) 928 928 error(psh, "Cannot set tty process group (%s) at %d", 929 s trerror(errno), __LINE__);929 sh_strerror(psh, errno), __LINE__); 930 930 } 931 931 if (jp->state == JOBSTOPPED && psh->curjob != jp - psh->jobtab)
Note:
See TracChangeset
for help on using the changeset viewer.