Date: Sat, 4 Sep 2010 21:23:46 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r212214 - head/bin/sh Message-ID: <201009042123.o84LNkGT038487@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009042123.o84LNkGT038487>