Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have two shell scripts: launch_job.sh and sub_job.sh.

If launch_job.sh uses the following method to run sub_job.sh:

nohup sub_job.sh &

sub_job.sh becomes an orphan, i.e. with PPID 1.
I discovered that such process doesn't receive signals, except SIGKILL. I guess there is some explanation for this, but I couldn't find it. Any ideas?

share|improve this question
add comment

1 Answer

As long as this parent is alive, it can handle the stopping and starting of members in the process group. When it dies, there may be nobody to continue stopped processes. that why they dont receive any other signal other than SIGKILL see http://www.win.tue.nl/~aeb/linux/lk/lk-10.html for details

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.