Thread (1 message) 1 message, 1 author, 2016-08-11

Re: lockfiles & fork()

From: Florian Weimer <hidden>
Date: 2016-08-11 20:41:59

* Johannes Schindelin:
when you setup a lockfile, and then fork(), you could easily end up with 
atexit() kicking in to remove the lockfile, before the main process has a 
chance to commit. (Yes, I need to hold the lock long before the fork()).

Any ideas how to solve the problem?
I think you should call _exit in the child instead of exit.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help