Re: at_fork & at_exit

From: Arun C Murthy
Date: Fri Dec 24 2004 - 15:08:07 EST


Jan Engelhardt wrote:

Hi,

Im looking for linux equivalent of the FreeBSD calls:

1. at_fork
2. at_exit


I do not see such a hook in the kernel source tree, so adding your own seems to only way.
The places are in kernel/fork.c:copy_process() and kernel/exit.c:__unhash_process


here's patches if someone else is interested... pls let me know if there are any improvements possible...

Arun

Attachment: atforkexit.patch.tar.gz
Description: application/gzip