Reposting per Oleg's request. The attached patch adds do_signal_parent() function. It is the same as do_notify_parent(), but can be used when the child is not terminating, but (for example) detaches with PR_DETACH.