PATCH: sync_client fails to exit via shutdown file

John Capo jc at irbs.com
Tue May 24 17:59:23 EDT 2016


Path is also attached.

--- cyrus-imapd-2.5.7/imap/sync_client.c.orig   2016-05-22 00:56:24.302742893 +0000
+++ cyrus-imapd-2.5.7/imap/sync_client.c        2016-05-22 10:25:34.956598506 +0000
@@ -2621,6 +2621,10 @@
        /* Check for shutdown file */
        if (sync_shutdown_file && !stat(sync_shutdown_file, &sbuf)) {
            unlink(sync_shutdown_file);
+           /* Have to exit with r == 0 or do_daemon() will call us again.
+            * The value of r is unknown from calls to sync_log_reader_begin() below.
+           */
+           r = 0;
            break;
        }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sync_client-patch
Type: application/octet-stream
Size: 502 bytes
Desc: not available
URL: <http://lists.andrew.cmu.edu/pipermail/cyrus-devel/attachments/20160524/d652e206/attachment.obj>


More information about the Cyrus-devel mailing list