Hi,
Nice question. I think I might be able to explain
The catch is the syslogd process. I am sure it forks to go into the background. To verify do the following:
1. Create a similar script like :
Code:
localuser@localhost ~ $ cat see.sh
#!/bin/sh
_pid=$$
echo $_pid
exec yes > /dev/null
2. The above script when executed will not fork into the background. So you will have to execute the "ps aux | grep yes" from another terminal.
Hopefully, this time the PIDs will match. I tried on my own machine and it does show the same PIDs.
cheers,
--cyberjun