svn commit: r212214 - head/bin/sh
Jilles Tjoelker
jilles at FreeBSD.org
Sat Sep 4 21:23:46 UTC 2010
Author: jilles
Date: Sat Sep 4 21:23:46 2010
New Revision: 212214
URL: http://svn.freebsd.org/changeset/base/212214
Log:
sh: Get rid of some magic numbers.
MFC after: 1 week
Modified:
head/bin/sh/eval.c
Modified: head/bin/sh/eval.c
==============================================================================
--- head/bin/sh/eval.c Sat Sep 4 17:28:29 2010 (r212213)
+++ head/bin/sh/eval.c Sat Sep 4 21:23:46 2010 (r212214)
@@ -995,7 +995,7 @@ cmddone:
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 @@ parent: /* parent process gets here (if
evalskip = SKIPBREAK;
skipcount = loopnest;
}
- } else if (mode == 2) {
+ } else if (mode == FORK_NOJOB) {
backcmd->fd = pip[0];
close(pip[1]);
backcmd->jp = jp;
More information about the svn-src-head
mailing list