Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Sep 2010 12:51:01 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r212464 - stable/8/bin/sh
Message-ID:  <201009111251.o8BCp1Wr096741@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009111251.o8BCp1Wr096741>