On 23 March 2014 22:34, Mihai Maruseac <[email protected]> wrote: > Hello, > > Matei a scris articolul cu $SUBJECT. Au mai rămas 13 săptămâni în > concurs. Have fun reading and writing. Comentarii pe listă sau la > articol. > > http://techblog.rosedu.org/daemonizing-processes.html > > -- > Mihai Maruseac (MM) > "If you don't know, the thing to do is not to get scared, but to > learn." -- Atlas Shrugged.
Salut, - ar merge mai bine "ps -f --ppid 1" în loc de awk - 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 Adrian _______________________________________________ http://lists.rosedu.org/listinfo/rosedu-general http://lists.rosedu.org/guidelines - Mailing List Guidelines
