On Thu, May 10, 2018 at 07:06:03PM +0200, Florian Weimer wrote:
> * David Beniamine:
> 
> > int do_fork() {
> >     pid_t pid;
> >
> >     switch (pid = fork()) {
> >         case -1:
> >             fprintf(stderr, "Fork failed\n");
> >             return -1;
> >         case 0:
> >             exit(-1);
> 
> Does the issue go away when you call _exit instead of exit?
> 
It goes away with _exit, indeed.

David

Attachment: signature.asc
Description: PGP signature

Reply via email to