|
Lines 44-52
Link Here
|
| 44 |
|
44 |
|
| 45 |
/* Initialise the signal action structure: */ |
45 |
/* Initialise the signal action structure: */ |
| 46 |
sigemptyset(&sa.sa_mask); |
46 |
sigemptyset(&sa.sa_mask); |
| 47 |
sa.sa_handler = a; |
47 |
sa.sa_handler = a; |
| 48 |
sa.sa_flags = SA_SIGINFO | SA_RESTART; |
48 |
sa.sa_flags = SA_SIGINFO; |
| 49 |
|
49 |
|
| 50 |
/* Perform the sigaction syscall: */ |
50 |
/* Perform the sigaction syscall: */ |
| 51 |
if (_thread_sys_sigaction(s, &sa, &osa) < 0) { |
51 |
if (_thread_sys_sigaction(s, &sa, &osa) < 0) { |
| 52 |
/* Return an error: */ |
52 |
/* Return an error: */ |