diff options
author | brian <brian@FreeBSD.org> | 1997-11-12 02:10:05 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-11-12 02:10:05 +0000 |
commit | 652211158989b6fb400ba1b120b08b38f5abccc5 (patch) | |
tree | 64ad9dc02f0147d1e79be8081072677f30016b24 /usr.sbin/ppp | |
parent | 688d87aa5a3b04df02a9b4490b687b6b146f2841 (diff) | |
download | FreeBSD-src-652211158989b6fb400ba1b120b08b38f5abccc5.zip FreeBSD-src-652211158989b6fb400ba1b120b08b38f5abccc5.tar.gz |
Don't warn that we're waiting for the command to complete if
we've put it in the background (!bg).
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r-- | usr.sbin/ppp/command.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/ppp/command.c b/usr.sbin/ppp/command.c index 3c10e24..83d426d 100644 --- a/usr.sbin/ppp/command.c +++ b/usr.sbin/ppp/command.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: command.c,v 1.97 1997/11/09 23:40:21 brian Exp $ + * $Id: command.c,v 1.98 1997/11/11 22:58:10 brian Exp $ * */ #include <sys/param.h> @@ -290,8 +290,7 @@ ShellCommand(struct cmdtab const * cmdlist, int argc, char **argv, int bg) LogPrintf(LogERROR, "%d: daemon: %s\n", p, strerror(errno)); exit(1); } - } - if (VarTerm) + } else if (VarTerm) fprintf(VarTerm, "ppp: Pausing until %s finishes\n", argv[0]); (void) execvp(argv[0], argv); } else { |