}
}
+void close_nointr_nofail(int fd) {
+
+ /* like close_nointr() but cannot fail, and guarantees errno
+ * is unchanged */
+
+ assert_se(close_nointr(fd) == 0);
+}
+
int parse_boolean(const char *v) {
assert(v);
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. */