[rosedu-general] [Techblog] Daemonizing Processes - pt 1

Mihai Maruseac mihai.maruseac at gmail.com
Mon Mar 24 13:12:21 EET 2014


2014-03-24 2:34 GMT-04:00 Adrian Sendroiu <molecula2788 at gmail.com>:
> - ar merge mai bine "ps -f --ppid 1" în loc de awk

Asta n-am schimbat :)

> - dup2 în loc de dup
> - daemon(3) nu e apel de sistem
> - "Now, if stdout is a terminal we have to redirect output to a file,
> just like the original command does:" - codul nu mai face partea cu
> dup2 pentru redirectare
> - "We can use disown to make the process become inherited by init" -
> disown nu face chiar asta
> - "If we go to another terminal, we'll see that the process has been
> adopted by init" - în  rezultatul comenzii următoare gedit nu are ca
> părinte pe init

Changed all, mersi.


-- 
Mihai Maruseac (MM)
"If you don't know, the thing to do is not to get scared, but to
learn." -- Atlas Shrugged.


More information about the rosedu-general mailing list