Spurious error: Process does not exist or is not a child process.

Andre Pany andre at s-e-a-p.de
Thu Apr 12 07:56:04 UTC 2018


On Thursday, 12 April 2018 at 06:45:36 UTC, Andre Pany wrote:
> Hi,
>
> I compiled a linux application on my pc (Windows subsystem for 
> Linux) and copied it to AWS EMR (linux) system.
>

I found the issue. In addition to the AWS client I also start 
other applications which might
become zombie processes. For these processes I added this coding:

signal(SIGCHLD, &handleSigChld);

extern (C) void handleSigChld(int sig) nothrow @nogc @system
     {

         import core.sys.posix.sys.wait : waitpid, WNOHANG;

         int status;
         waitpid(-1, &status, WNOHANG);
     }

But this coding has a bad influence on the AWS client causing 
spurious exceptions.

Kind regards
André



More information about the Digitalmars-d-learn mailing list