From adbec73e0020ea05b37735bc35e1db72cc3620ae Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Wed, 12 Nov 1997 02:10:05 +0000 Subject: [PATCH] Don't warn that we're waiting for the command to complete if we've put it in the background (!bg). --- usr.sbin/ppp/command.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/usr.sbin/ppp/command.c b/usr.sbin/ppp/command.c index 3c10e248411..83d426db08d 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 @@ -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 {