when resetting signal handlers, set them to SA_RESTART

This commit is contained in:
Lennart Poettering
2010-01-28 01:53:39 +01:00
parent 85f136b5d0
commit 431c32bf79
+1
View File
@@ -488,6 +488,7 @@ int reset_all_signal_handlers(void) {
zero(sa);
sa.sa_handler = SIG_DFL;
sa.sa_flags = SA_RESTART;
/* On Linux the first two RT signals are reserved by
* glibc, and sigaction() will return EINVAL for them. */