lkml.org 
[lkml]   [2000]   [Aug]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: ifconfig device down
On Fri, 4 Aug 2000, Jesse Pollard wrote:
>
> What a normal shutdown does is to issue a kill(-1,15) first, then
> wait 3-5 seconds (or when it finishes other stuff) before sending
> the kill(-1,9). It also doesn't kill itself. The signal 15 gives
> the daemons time to close the connections and exit. If they are not
> finished by the time the signal 9 occurs, then they are forced out, and the
> connections left open.

Yes. That's what Sys-V init does. The signal 9 should have caused the
children to have their fd's closed. This does not happen for sockets.

The SIGTERM (15) can be trapped. SIGKILL (9) can't, but it doesn't get
sent to pid 1 (init) so init doesn't get killed.

>
> The open connections get closed when a error packet is sent back from
> the rebooted system after the remote host sends a retry.
>

Correct. I need them to be closed during the shutdown. There should
be some way so I don't have to insert a signal handler into software
I don't have the source for.


Cheers,
Dick Johnson

Penguin : Linux version 2.2.15 on an i686 machine (797.90 BogoMips).

"Memory is like gasoline. You use it up when you are running. Of
course you get it all back when you reboot..."; Actual explanation
obtained from the Micro$oft help desk.



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:58    [W:0.034 / U:0.472 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site