Hello,

On Tue, 3 Nov 2026 01:28:44 Samuel Thibault wrote:

> > I’m not entirely certain, but perhaps it would be better not to return the
> > result from mach_notify_new_task immediately; instead, one should first
> > check
> > for an error, and if one exists, dealloc the task and call deref on childp.
>
> I'm not sure what you mean, do you mean to factorize the exit cases?

Yes, I think it’s possible to factor out the program-exit scenarios into
separate elements.  The question is whether any action needs to be taken
regarding task and childp if an error is returned within mach_notify_new_task.
If no such action is required, then the code can be left as is.

Thanks,

--
Mikhail Karpov


Reply via email to