[prev in list] [next in list] [prev in thread] [next in thread]
List: osiris-devel
Subject: Re: [osiris-devel] Why osirisd died on Solaris - I find 1 reason
From: Brian Wotring <brian () shmoo ! com>
Date: 2004-01-18 19:37:15
Message-ID: B82E2875-49ED-11D8-9EB8-000393578C14 () shmoo ! com
[Download RAW message or body]
I don't mind ignoring HUP for Solaris. Here is the diff:
Index: osirisd.c
===================================================================
RCS file: /home/cvs/projects/osiris/src/osirisd/osirisd.c,v
retrieving revision 1.149
diff -r1.149 osirisd.c
156a157
> int received_sighup = 0;
1461a1463,1469
> void handle_sighup( int signal )
> {
> #ifndef WIN32
> received_sighup = 1;
> #endif
> }
>
1589a1598,1603
> if( received_sighup )
> {
> received_sighup = 0;
> log_info( LOG_MEDIUM, NULL, "SIGHUP" );
> }
>
1929a1944
> sigset( SIGHUP, handle_sighup );
Index: osirisd.h
===================================================================
RCS file: /home/cvs/projects/osiris/src/osirisd/osirisd.h,v
retrieving revision 1.64
diff -r1.64 osirisd.h
90a91
> void handle_sighup( int signal );
On Jan 17, 2004, at 5:47 PM, Alexei Roudnev wrote:
> I saw a few cases, when osiris scanner died on Solaris after
> installation.
> Short investigation revealed, that:
> - if I loging as a root (did niot used 'sudo' or 'su')
> - and if I started osiris as /etc/init.d/osirisd start
>
> then, when I logout, system send SIG_HUP to all controlled (by my tty)
> processes, so killing osirisd.
>
> Short term fix - add </dev/null > /dev/null 2>& 1 into osirisd shell
> script
> Long term fix - block SIG_HUP in osiris daemons. TO BE DONE.
>
> Bug was not noticed, because in most cases we run 'su' or 'sudo';
> then, when
> system sends signal, it is send as a personal user (not root) and so
> can not
> kill a daemon.
>
> Alex
>
>
>
> _______________________________________________
> osiris-devel mailing list
> osiris-devel@lists.shmoo.com
> https://lists.shmoo.com/mailman/listinfo/osiris-devel
>
>
--
Brian Wotring ( brian@shmoo.com )
PGP KeyID: 0x9674763D
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic