c - How to do a cleanup after SIGKILL? -


I am working on a program that uses shared memory, many instances of the program are connected to an existing one You can go back or make it back on the OS, when there is no other process or just separate it and finish it. I thought how many processes used it, to keep track of it Using Simple Counter

I am using the atexit () function to perform the cleanup, however, the seagle signal upon receiving afaik, the process will not be able to perform any cleanup, so if they If none of the procedures end up normally, then maybe I would never be able to clean the memory.

Is there a way to specify what to do after a Sigil signal? I'm probably going to write some mechanisms like a timer so that it can check whether the process is still alive, but I really want to avoid it if there is any other way.

No, Sigil can not be caught in any way by your application - if it does, then the application It can ignore it, which will harm its purpose.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -