]> git.wh0rd.org - dump.git/blobdiff - dump/tape.c
Empty the sigaction structure to be portable.
[dump.git] / dump / tape.c
index 851a5cdc5204375bac819394cfd9f894fbe7014b..63b64260db1d73cf928b5dd426def5feaf650771 100644 (file)
@@ -40,7 +40,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-       "$Id: tape.c,v 1.21 2000/08/19 22:06:03 stelian Exp $";
+       "$Id: tape.c,v 1.23 2000/08/30 08:55:21 stelian Exp $";
 #endif /* not lint */
 
 #ifdef __linux__
@@ -895,9 +895,8 @@ enslave(void)
        master = getpid();
 
     {  struct sigaction sa;
-       sa.sa_sigaction = NULL;
+       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;