4 ms·
> Nothing saves you from kill -9, as we all know. True, but it doesn't have to be you who does the cleanup. You could create a background process and establish
by bheadmaster 3y ago
> Nothing saves you from kill -9, as we all know.
True, but it doesn't have to be you who does the cleanup. You could create a background process and establish a temporary UNIX socket connection, so when the parent dies, the socket closes and the child process cleans up everything.