Commit "Restart IO operations when interrupter by signal"
didn't actually activate sigaction because config.h.cmakein
change was missing.
Fixes #798
Change-Id: Id5c7e3344688c32ec4c51d84ccbc66658ed928f9
/* Define to 1 if you have the lstat() function. */
#cmakedefine HAVE_LSTAT
+/* Define to 1 if you have the sigaction() function. */
+#cmakedefine HAVE_SIGACTION
+
/* Define to 1 if you have the <string.h> header file. */
#cmakedefine HAVE_STRING_H
#ifdef HAVE_SIGACTION
struct sigaction act;
act.sa_handler = signal_handler;
- act.flags = SA_RESTART;
- sigaction(signum,act);
+ act.sa_flags = SA_RESTART;
+ sigaction(signum,&act,NULL);
#else
signal(signum,signal_handler);
#endif