svn commit: r212464 - stable/8/bin/sh

Jilles Tjoelker jilles at FreeBSD.org
Sat Sep 11 12:51:01 UTC 2010


Author: jilles
Date: Sat Sep 11 12:51:01 2010
New Revision: 212464
URL: http://svn.freebsd.org/changeset/base/212464

Log:
  MFC r212214: sh: Get rid of some magic numbers.

Modified:
  stable/8/bin/sh/eval.c
Directory Properties:
  stable/8/bin/sh/   (props changed)

Modified: stable/8/bin/sh/eval.c
==============================================================================
--- stable/8/bin/sh/eval.c	Sat Sep 11 10:49:56 2010	(r212463)
+++ stable/8/bin/sh/eval.c	Sat Sep 11 12:51:01 2010	(r212464)
@@ -896,7 +896,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;
@@ -904,7 +904,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-stable mailing list