[dancer-users] How can a fork+system() Dancer app not create zombie processes?

Andrew Beverley andy at andybev.com
Fri Apr 14 11:58:46 BST 2017

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:


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)


More information about the dancer-users mailing list