views:

59

answers:

3

Hello,

What is performed behind the scenes when a program runs with nohup?

Is the PID of the parent process being changed?

Thanks.

EDIT: I understood that nohup (and disown) causes that SIGHUP is not sent to the process if the parent process receives it. Does it mean that it is equivalent to handling SIGHUP (and actually ignore it)?

A: 

The Wikipedia article about nohup explains it pretty well.

Aaron Digulla
+1  A: 

Use the source, Luke!

Blrfl
A: 

It is equivalent to setting the SIGHUP handler to SIG_IGN, ie.

signal(SIGHUP, SIG_IGN);
Hasturkun