]> git.wh0rd.org - dump.git/blobdiff - dump/tape.c
cybercable -> noos.
[dump.git] / dump / tape.c
index 91474418c3bef907d6acd6c0df6ecb5442bb8836..545c78fd0c5778dbab784d5b8a7dfc6e89f95c86 100644 (file)
@@ -2,7 +2,8 @@
  *     Ported to Linux's Second Extended File System as part of the
  *     dump and restore backup suit
  *     Remy Card <card@Linux.EU.Org>, 1994-1997
- *     Stelian Pop <pop@cybercable.fr>, 1999-2000
+ *     Stelian Pop <pop@noos.fr>, 1999-2000
+ *     Stelian Pop <pop@noos.fr> - AlcĂ´ve <www.alcove.fr>, 2000
  */
 
 /*-
@@ -40,7 +41,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-       "$Id: tape.c,v 1.22 2000/08/21 10:45:40 stelian Exp $";
+       "$Id: tape.c,v 1.25 2000/12/04 15:43:16 stelian Exp $";
 #endif /* not lint */
 
 #ifdef __linux__
@@ -895,11 +896,8 @@ enslave(void)
        master = getpid();
 
     {  struct sigaction sa;
-#if    HAVE_SIGACTION_SA_SIGACTION
-       sa.sa_sigaction = NULL;
-#endif
+       memset(&sa, 0, sizeof sa);
        sigemptyset(&sa.sa_mask);
-       sa.sa_flags = 0;
        sa.sa_handler = dumpabort;
        sigaction(SIGTERM, &sa, NULL); /* Slave sends SIGTERM on dumpabort() */
        sa.sa_handler = sigpipe;