14 Apr
2017
14 Apr
'17
10:58 a.m.
On Thu, 13 Apr 2017 13:11:38 +0300 Shlomi Fish wrote:
sorry it took me so long to try that. I've now tried your suggestion of double-forking and I'm still getting zombies. See:
* https://bitbucket.org/shlomif/app-notifier/branch/zombies-processes-bug
How can it be fixed?
You need to also copy the code for the exit: POSIX::_exit(0); Reasons here: stackoverflow.com/questions/5422831/ Incidentally I noticed this: if (fork() eq 0) eq is for comparing strings, and you could just write: if (!fork) Andy