Is there a way to do something similar to atexit, but preserve exit handlers after an exec call?
Or otherwise is there a way to register exit handlers for another process by process id?
Is there a way to do something similar to atexit, but preserve exit handlers after an exec call?
Or otherwise is there a way to register exit handlers for another process by process id?