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

Jerry Krinock jerry at ieee.org
Fri Aug 13 16:28:01 PDT 2010

I compiled a tool named "Beeper", which simply calls NSBeep() every second, in an infinite loop.

I then loaded this job using launchctl:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">

As expected, my computer begins beeping.

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?


Jerry Krinock

More information about the launchd-dev mailing list