This blog is original from here: [ uCdot ]
Here the little trick is :
Use option '-D' as a 'differentiate mark' of daemon process
from the parent process.
The second time it self exec(), means the daemon process
starting with -D option, which make it goes to the 'else' block :
It's a Clean and Simple example!
#

Here the little trick is :
Use option '-D' as a 'differentiate mark' of daemon process
from the parent process.
The second time it self exec(), means the daemon process
starting with -D option, which make it goes to the 'else' block :
It's a Clean and Simple example!
#
沒有留言:
張貼留言