News for hackers. Stuff that matters.
Re:File Locks on Linux by bheadmaster on Wednesday May 10, 2023 @08:20AM (#35886296)
> 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.

There are no comments on this comment yet.