That's almost right, but you should avoid calling __mach_port_deallocate
if APORT is MACH_PORT_NULL.  Also, avoid shadowing the local variable ERR
with one of the same name in the subfunction.

Thanks,
Roland

Reply via email to