[launchd-changes] [23430] trunk/launchd/src/launchd_core_logic.c

source_changes at macosforge.org source_changes at macosforge.org
Tue Sep 25 10:18:45 PDT 2007


Revision: 23430
          http://trac.macosforge.org/projects/launchd/changeset/23430
Author:   zarzycki at apple.com
Date:     2007-09-25 10:18:45 -0700 (Tue, 25 Sep 2007)

Log Message:
-----------
<rdar://problem/5502412> PubSubAgent isn't launched on schedule by launchd [PubSub isn't automatically refreshing]

Modified Paths:
--------------
    trunk/launchd/src/launchd_core_logic.c

Modified: trunk/launchd/src/launchd_core_logic.c
===================================================================
--- trunk/launchd/src/launchd_core_logic.c	2007-09-25 17:15:32 UTC (rev 23429)
+++ trunk/launchd/src/launchd_core_logic.c	2007-09-25 17:18:45 UTC (rev 23430)
@@ -5365,6 +5365,9 @@
 		} else if (inval) {
 			if (j->start_interval == 0) {
 				runtime_add_ref();
+			} else {
+				/* Workaround 5225889 */
+				job_assumes(j, kevent_mod((uintptr_t)&j->start_interval, EVFILT_TIMER, EV_DELETE, 0, 0, j) != -1);
 			}
 			j->start_interval = inval;
 			job_assumes(j, kevent_mod((uintptr_t)&j->start_interval, EVFILT_TIMER, EV_ADD, NOTE_SECONDS, j->start_interval, j) != -1);

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/launchd-changes/attachments/20070925/2cfaf6af/attachment.html


More information about the launchd-changes mailing list