$child_pid = $$;
$$ is not the child process identifier. You have the parent process trying to kill itself.
But, more fundamentally, fork does not work properly on Windows; and you are wasting your time writing new code that tries to use it.
In reply to Re: Killing the child process is not working
by BrowserUk
in thread Killing the child process is not working
by srlbharu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |