Re: Detect when a process has stopped responding?
Re: Detect when a process has stopped responding?
- Subject: Re: Detect when a process has stopped responding?
- From: Ken Thomases via Cocoa-dev <email@hidden>
- Date: Mon, 30 Dec 2019 15:43:00 -0600
On Dec 30, 2019, at 3:19 PM, James Walker via Cocoa-dev
<email@hidden> wrote:
>
> Some Apple utilities such as Activity Monitor can detect when a process has
> stopped responding to events. Is there any way to do that using public APIs?
You might be able to do it by sending the process in question an innocuous
Apple Event with a timeout. If it doesn't respond within the timeout, it's
probably stuck. Of course, these days, that requires user permission. Also,
it's a polling strategy, which isn't ideal.
Regards,
Ken
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden