]> Dogcows Code - chaz/tar/commitdiff
2011-09-27 Paul Eggert <eggert@cs.ucla.edu>
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 28 Sep 2011 04:21:48 +0000 (21:21 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 28 Sep 2011 04:22:15 +0000 (21:22 -0700)
* src/tar.c (stat_on_signal): Use SA_RESTART if available.

src/tar.c

index 6d370441b96e5932198aeb4a6b6dbbe5ac371e29..f0d8f5bfd06643430815e94abf8bd939e04029ed 100644 (file)
--- a/src/tar.c
+++ b/src/tar.c
@@ -956,10 +956,13 @@ static void
 stat_on_signal (int signo)
 {
 #ifdef HAVE_SIGACTION
+# ifndef SA_RESTART
+#  define SA_RESTART 0
+# endif
   struct sigaction act;
   act.sa_handler = sigstat;
   sigemptyset (&act.sa_mask);
-  act.sa_flags = 0;
+  act.sa_flags = SA_RESTART;
   sigaction (signo, &act, NULL);
 #else
   signal (signo, sigstat);
This page took 0.024274 seconds and 4 git commands to generate.