Fix a long-standing bug with dump not treating errors correctly. They
were mishandled as an EOF, which became fatal if your first tape was accidentally write-protected. PR: bin/850 dump treats write-protect as an EOT...
This commit is contained in:
parent
24af8da4a0
commit
b2e4a00210
@ -722,8 +722,10 @@ killall()
|
||||
register int i;
|
||||
|
||||
for (i = 0; i < SLAVES; i++)
|
||||
if (slaves[i].pid > 0)
|
||||
if (slaves[i].pid > 0) {
|
||||
(void) kill(slaves[i].pid, SIGKILL);
|
||||
slaves[i].sent = 0;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
@ -818,7 +820,7 @@ doslave(cmd, slave_number)
|
||||
* fixme: Pyramids running OSx return ENOSPC
|
||||
* at EOT on 1/2 inch drives.
|
||||
*/
|
||||
if (size < 0) {
|
||||
if (wrote < 0) {
|
||||
(void) kill(master, SIGUSR1);
|
||||
for (;;)
|
||||
(void) sigpause(0);
|
||||
|
Loading…
Reference in New Issue
Block a user