Commit 851d663
committed
daemon: explicitly allow EINTR during poll()
If the setup for the SIGCHLD signal handler sets SA_RESTART, poll()
might not return with -1 and set errno to EINTR when a signal is
received.
Since the logic to reap zombie childs relies on those interruptions
make sure to explicitly disable SA_RESTART around this function.
Signed-off-by: Carlo Marcelo Arenas Belón <[email protected]>1 parent c66bda4 commit 851d663
1 file changed
+21
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1116 | 1116 | | |
1117 | 1117 | | |
1118 | 1118 | | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
1119 | 1138 | | |
1120 | 1139 | | |
1121 | 1140 | | |
| |||
1136 | 1155 | | |
1137 | 1156 | | |
1138 | 1157 | | |
| 1158 | + | |
1139 | 1159 | | |
1140 | 1160 | | |
1141 | 1161 | | |
| |||
1144 | 1164 | | |
1145 | 1165 | | |
1146 | 1166 | | |
| 1167 | + | |
1147 | 1168 | | |
1148 | 1169 | | |
1149 | 1170 | | |
| |||
0 commit comments