daemonize icon indicating copy to clipboard operation
daemonize copied to clipboard

Terminate call segfaults my application

Open rsubtil opened this issue 6 years ago • 0 comments

If the lock file is present, the enforceLockFile uses a terminate call to terminate the program (line in question here). In my case, this causes a segfault within the GTK-D code. I changed the code to return an error code instead of a terminate call to propagate the return code back to my main code, and now the app terminates without crashes. Since this code runs before the fork I don't see a problem with this implementation, so I'd like to know if it's a viable solution or if there is a better reason to use terminate instead.

rsubtil avatar Sep 26 '19 14:09 rsubtil