| 1148 | #endif |
| 1149 | |
| 1150 | void check_pipe(int err) |
| 1151 | { |
| 1152 | if (err == EPIPE) { |
| 1153 | if (in_async()) |
| 1154 | async_exit(141); |
| 1155 | |
| 1156 | signal(SIGPIPE, SIG_DFL); |
| 1157 | raise(SIGPIPE); |
| 1158 | /* Should never happen, but just in case... */ |
| 1159 | exit(141); |
| 1160 | } |
| 1161 | } |
| 1162 | |
| 1163 | int start_async(struct async *async) |
| 1164 | { |
no test coverage detected