X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=dump%2Ftape.c;h=1b28c41e6e6307a9a9f662d36fc243c0b28045c3;hp=b0d7fd4b01a74f9011eaacbe6dd46909667c13ce;hb=f34aca37d19fe46de9acb22249565dfb6491ab2f;hpb=60f5ede9f87288e50fc52fbe12dd70fcd67d322d diff --git a/dump/tape.c b/dump/tape.c index b0d7fd4..1b28c41 100644 --- a/dump/tape.c +++ b/dump/tape.c @@ -40,7 +40,7 @@ #ifndef lint static const char rcsid[] = - "$Id: tape.c,v 1.6 1999/10/13 09:57:20 stelian Exp $"; + "$Id: tape.c,v 1.7 1999/11/02 09:35:56 tiniou Exp $"; #endif /* not lint */ #ifdef __linux__ @@ -95,6 +95,7 @@ extern int ntrec; /* blocking factor on tape */ extern int cartridge; extern char *host; char *nexttape; +extern pid_t rshpid; static ssize_t atomic_read __P((int, void *, size_t)); static ssize_t atomic_write __P((int, const void *, size_t)); @@ -661,7 +662,8 @@ restore_check_point: tapeno+1, parentpid, childpid); #endif /* TDEBUG */ while ((waitpid = wait(&status)) != childpid) - msg("Parent %d waiting for child %d has another child %d return\n", + if (waitpid != rshpid) + msg("Parent %d waiting for child %d has another child %d return\n", parentpid, childpid, waitpid); if (status & 0xFF) { msg("Child %d returns LOB status %o\n",