Backgrund jobs terminates when exiting shell

2007-12-25 9:54:00

Original posting:

> Consider the following:

>

> rlogin a -l b

> bg_job &

> exit

>

> This does not work...

>

> When exiting, bg_job receives the SIGABRT signal and

> dies:

>

> sigaction(SIGABRT, 0xFFBEF4B8, 0xFFBEF538) = 0

> sigprocmask(SIG_UNBLOCK, 0xFFBEF568, 0x00000000) = 0

> getpid() = 18616 [1]

> kill(18616, SIGABRT) = 0

> Received signal #6, SIGABRT [default]

> siginfo: SIGABRT pid=18616 uid=502

> *** process killed ***

>

> This is on a Ultra 10 with Solaris 7. No patches.

The answer: Use nohop!

Some suggested using at/crontab.

Thanks to all who responded!!!

Regards,

Nils K. Schøyen

NORSAR

Comments

Got something to say?

You must be logged in to post a comment.