[launchd-dev] ExitTimeOut seems to be ignored in simple demo

Michael Ledford michael at ledford.cc
Fri Aug 13 18:34:01 PDT 2010


On Aug 13, 2010, at 7:28 PM, Jerry Krinock wrote:

> Note that ExitTimeOut = 5.
> 
> Expected Result: My tool should get a SIGKILL and quit beeping after 5 seconds.
> Actual Result: My tool keeps executing until I kill it with other means.
> 
> What's wrong?

I asked the same question earlier this year. You can read the response that is pretty clear on what is happening here... http://lists.macosforge.org/pipermail/launchd-dev/2010-January/000732.html

In summary ExitTimeOut is referring to the time between when a SIGTERM is issued by launchd, e.g. someone asked for a launchd process to stop via launchctl, and when the SIGKILL is issued.

Sincerely,
Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3920 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/launchd-dev/attachments/20100813/d8fdb36e/attachment.bin>


More information about the launchd-dev mailing list