2014-05-15 9:32 GMT+02:00 Philip Guenther <[email protected]>:

> On Wed, May 14, 2014 at 1:26 AM, Tomek Wałaszek
<[email protected]>wrote:
>>
>> Sorry for the top post
>> I'm just trying to understand why there is a unix-domain socket for
>> reloading the cron if without the socket (rm /var/cron/tabs/.sock) cron
>> will reload new jobs.
>>
>
> If you're wondering why the developer added it, you should check the
> commit logs.  Since OpenBSD's cron is derived from Vixie cron, you may need
> to dig through the Vixie cron changelogs.
>
> If you're wondering why it still uses a unix-domain socket:
> 1) the socket is used for more than just "reload". check the source for
> the details
> 2) will the periodic scan notice a change if the clock jumps between the
> change and the scan?  What if the scan happens at the same moment as the
> change?  what if there are two changes in the same second, and the scan
> takes place between them?  How confident are you that the scan doesn't have
> a corner case?
> 3) is there a problem with it?
>
>
> Philip Guenther
>
>

Point number 2 answers my question ;) thanks

Reply via email to