From: Stelian Pop Date: Tue, 11 Jan 2000 12:32:53 +0000 (+0000) Subject: Fix the treatment for an interrupt signal when dump access the remote tape through... X-Git-Tag: release_0_4b13~6 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=b80c25f88a480557d2985ffc0eabf0ca40d4b267;p=dump.git Fix the treatment for an interrupt signal when dump access the remote tape through RSH. --- diff --git a/CHANGES b/CHANGES index 7739610..129df01 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,4 @@ -$Id: CHANGES,v 1.33 2000/01/09 23:47:29 tiniou Exp $ +$Id: CHANGES,v 1.34 2000/01/11 12:32:53 tiniou Exp $ Changes between versions 0.4b12 and 0.4b13 (released ???????????????) ===================================================================== @@ -15,6 +15,10 @@ Changes between versions 0.4b12 and 0.4b13 (released ???????????????) Many thanks to Patrik Schindler for helping me find this bug. +4. Fix the treatment for an interrupt signal when dump access + the remote tape through RSH. Thanks to Christian Weisgerber + for providing the patch. + Changes between versions 0.4b11 and 0.4b12 (released January 8, 2000) ===================================================================== diff --git a/common/dumprmt.c b/common/dumprmt.c index 5f53079..b56cc27 100644 --- a/common/dumprmt.c +++ b/common/dumprmt.c @@ -40,7 +40,7 @@ #ifndef lint static const char rcsid[] = - "$Id: dumprmt.c,v 1.8 1999/11/02 09:35:56 tiniou Exp $"; + "$Id: dumprmt.c,v 1.9 2000/01/11 12:33:44 tiniou Exp $"; #endif /* not lint */ #ifdef __linux__ @@ -450,6 +450,7 @@ int piped_child(const char **command) { msg ("cannot dup2 pipe: %s\n", strerror(errno)); exit(1); } + setpgid(0, getpid()); execvp (command[0], (char *const *) command); msg("cannot exec %s: %s\n", command[0], strerror(errno)); exit(1);