SUMMARY: Backgrund jobs terminates when exiting shell

From: Nils K. Schoyen (nils@norsar.no)
Date: Mon Apr 19 1999 - 03:56:48 CDT


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



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:18 CDT