Révision 9882a4c5
Ajouté par Ermal il y a presque 10 ans
pfPorts/check_reload_status/files/check_reload_status.c | ||
---|---|---|
373 | 373 |
|
374 | 374 |
result = write(fcgifd, buf, len); |
375 | 375 |
if (result < 0) { |
376 |
if (fcgifd) |
|
376 |
if (fcgifd) { |
|
377 |
event_del(&fcgiev); |
|
377 | 378 |
close(fcgifd); |
379 |
} |
|
378 | 380 |
fcgifd = -1; |
379 | 381 |
syslog(LOG_ERR, "Something wrong happened while sending request: %m\n"); |
380 | 382 |
timeout_add(&cmd->ev, &tv); |
Formats disponibles : Unified diff
Actually delete the event here to be have to generate a new one otherwise libevent will probably have issues