In crunchgen(1), when calling make(1), don't redirect stderr to stdout,

just rely on the exit status to detect an error.  This makes crunchgen(1)
safe to use with certain make(1) debugging flags.

MFC after:	1 week
This commit is contained in:
Ruslan Ermilov 2005-01-20 10:49:03 +00:00
parent 60c3f10368
commit 951e4d1c91
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=140509
2 changed files with 2 additions and 2 deletions

View File

@ -780,7 +780,7 @@ _yacc= usr.bin/yacc
.endif
.if !defined(NO_RESCUE) && \
${BOOTSTRAPPING} < 502128
${BOOTSTRAPPING} < 600008
_crunchgen= usr.sbin/crunch/crunchgen
.endif

View File

@ -700,7 +700,7 @@ void fillin_program_objs(prog_t *p, char *path)
fclose(f);
snprintf(line, MAXLINELEN, "cd %s && make -f %s crunchgen_objs 2>&1",
snprintf(line, MAXLINELEN, "cd %s && make -f %s crunchgen_objs",
p->srcdir, tempfname);
if ((f = popen(line, "r")) == NULL) {
warn("submake pipe");