On Aug 13, 2008, at 3:37 AM, Kevin Van Vechten wrote:
On Aug 12, 2008, at 11:36 PM, Benjamin Burke wrote:
When an agent is run as the result of a watched path being modified, does launchd provide the agent with the path that triggered it? For example, imagine that I have the following plist which identifies 3 watchpaths [...]
No, I don't think the path that triggered the launch is communicated to the process. Seems like a reasonable enhancement request, but the files may be modified after the process is launched and it's the agent's responsibility to watch for that.
Thanks. I finally got around to submitting this as an enhancement request (radar #6156218). I tried to come up with a patch myself, but I keep crashing in job_start_child... I'm afraid that I'm a bit out of my depth at the moment.