Skip to content

Commit 3757c09

Browse files
committed
Enable system call restarting
When the SIGCHLD signal is received, it aborts interruptible system calls. To avoid having to retry the system calls on the client side on such an error, enable automatic system call restarting.
1 parent d20e909 commit 3757c09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/os/unix/process-wrappers.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ int __gnatcoll_init_sigchld_monitoring()
129129
struct sigaction action;
130130
action.sa_handler = __gnatcoll_write_on_sigchld;
131131
sigemptyset(&action.sa_mask);
132-
action.sa_flags = 0;
132+
action.sa_flags = SA_RESTART;
133133
return sigaction (SIGCHLD, &action, NULL);
134134
}
135135

0 commit comments

Comments
 (0)