Sample Header Ad - 728x90

WSL - Different behavior for zombie processes

0 votes
1 answer
1068 views
I'm just playing around with zombie processes on WSL. I wrote a quite simple program: #include #include #include #define CHILD 0 int main(){ int p; p = fork(); if(p == CHILD){ printf("Kind-PID: %u\n", getpid()); exit(1); } else if(p > CHILD){ sleep(30); } else return EXIT_FAILURE; return EXIT_SUCCESS; } While I can see the zombie process on a native Linux using ps, I can't see a zombie process on WSL. Can anyone explain why?
Asked by TimSch (123 rep)
May 17, 2019, 10:22 AM
Last activity: May 17, 2019, 04:30 PM