blob: 08af568b45266a93c27e00867fa9c403a706a7d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
--- ucarp-1.5.1.orig/src/carp.c
+++ ucarp-1.5.1/src/carp.c
@@ -843,6 +843,9 @@
if ((pfds[0].revents & (POLLERR | POLLHUP)) != 0) {
logfile(LOG_ERR, _("exiting: pfds[0].revents = %d"),
pfds[0].revents);
+ if ((sc.sc_state != BACKUP) && (shutdown_at_exit != 0)) {
+ (void) spawn_handler(dev_desc_fd, downscript);
+ }
break;
}
if (gettimeofday(&now, NULL) != 0) {
|