I use PHP extension "PCNTL" write some codes, and run it in terminal, but why appear the Linux host Path
"gdy@localhost:~/myDev/webroot/spider/my$"
why appear the Linux host Path
"gdy@localhost:~/myDev/webroot/spider/my$"
This is simply the prompt of your shell, which naturally appears because the parent process in your PHP CODE has run to its end. And this is because you used pcntl_waitpid
's WNOHANG option.