sh: Get rid of some magic numbers.
MFC after: 1 week
This commit is contained in:
parent
ef3b7ba04f
commit
27542743cd
@ -995,7 +995,7 @@ evalcommand(union node *cmd, int flags, struct backcmd *backcmd)
|
||||
goto out;
|
||||
|
||||
parent: /* parent process gets here (if we forked) */
|
||||
if (mode == 0) { /* argument to fork */
|
||||
if (mode == FORK_FG) { /* argument to fork */
|
||||
INTOFF;
|
||||
exitstatus = waitforjob(jp, &realstatus);
|
||||
INTON;
|
||||
@ -1003,7 +1003,7 @@ evalcommand(union node *cmd, int flags, struct backcmd *backcmd)
|
||||
evalskip = SKIPBREAK;
|
||||
skipcount = loopnest;
|
||||
}
|
||||
} else if (mode == 2) {
|
||||
} else if (mode == FORK_NOJOB) {
|
||||
backcmd->fd = pip[0];
|
||||
close(pip[1]);
|
||||
backcmd->jp = jp;
|
||||
|
Loading…
Reference in New Issue
Block a user