sh: Get rid of some magic numbers.

MFC after:	1 week
This commit is contained in:
Jilles Tjoelker 2010-09-04 21:23:46 +00:00
parent ef3b7ba04f
commit 27542743cd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=212214

View File

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