Re: ifconfig device down

From: Richard B. Johnson (
Date: Fri Aug 04 2000 - 14:28:19 EST

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.

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
Please read the FAQ at

This archive was generated by hypermail 2b29 : Mon Aug 07 2000 - 21:00:13 EST