[so] Intrebari lab. 6

Bogdan Sass bogdan.sass at catc.ro
Thu Apr 2 23:59:56 EEST 2009


    1. De ce in codul oferit pentru nohup (linux) se face un fork? Nu 
era suficient un ignore signal/exec? Care ar fi avantajele abordarii 
bazate pe fork?

    2. La punctul 2 ( mkzombie/nozombie ), am incercat sa realizez o 
implementare bazata pe SA_NOCLDWAIT ( 
http://linux.die.net/man/2/sigaction ). Fara rezultat (copilul se 
transforma in continuare in zombie).
    Am aflat ulterior ca pot obtine efectul dorit (nozombie :P ) 
ignorand semnalul SIGCHLD (handler=SIG_IGN).
    Intrebarea este - care sunt diferentele dintre cele doua abordari? 
De ce a mai fost introdus NOCLDWAIT (din cate vad eu e "Linux 2.6 or 
above"), daca ignorarea mesajului face acelasi lucru?

    Multumesc,

-- 
Bogdan Sass
CCAI,CCSP,JNCIA-ER,CCIE #22221 (RS)
Information Systems Security Professional
"Curiosity was framed - ignorance killed the cat"

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3287 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20090402/ab9d793e/attachment.bin>


More information about the so mailing list