Hallo Tom,
Und wenn Du ein "Kill -9" gibst, wird das alles ignoriert und sofort die Exit-Methode des parent aufgerufen.
Nein. Wenn ein Prozess mit kill -9 gekillt wird, ist er sofort weg, außer, er hängt in einem ungünstigen Systemaufruf fest. Der Parent-Prozess kriegt zwar ordnungsgemäß ein SIGCHLD (oder SIGCHILD - bin jetzt zu faul, nachzuschlagen, welches der beiden POSIX.1 ist), aber das hat nichts mit Exit-Handlern zu tun.
Viele Grüße,
Christian
--
"I have always wished for my computer to be as easy to use as my telephone; my wish has come true because I can no longer figure out how to use my telephone." - Bjarne Stroustrup
"I have always wished for my computer to be as easy to use as my telephone; my wish has come true because I can no longer figure out how to use my telephone." - Bjarne Stroustrup