From b80c25f88a480557d2985ffc0eabf0ca40d4b267 Mon Sep 17 00:00:00 2001 From: Stelian Pop Date: Tue, 11 Jan 2000 12:32:53 +0000 Subject: [PATCH] Fix the treatment for an interrupt signal when dump access the remote tape through RSH. --- CHANGES | 6 +++++- common/dumprmt.c | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) 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); -- 2.39.2