Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to reproduce a situation where a process fails due to a network outage. I was hoping to reproduce this signal with a kill command. A normal kill command is not working. I have taken a look at /usr/include/sys/signal.h to try to find a signal that refers to anything that might be related to a network outage, but with no luck. Has anybody tried to reproduce a network outage with the kill command?

Sorry if this is a newbish question! Please correct me if I am going about this in a completely wrong way.

share|improve this question
Windmills do not work that way! (in other words, "Yes, you're going about this in a completely wrong way" - look into alternate kinds of IPC, like dbus) – voretaq7 Jun 21 '13 at 16:26
up vote 7 down vote accepted

None. A "network failure" is not a signal.

share|improve this answer

As others have said, signals dont work that way, they are not generally tied to specific error codes like "no network", I assume you are coming from a Windows background? If you want to reproduce a network failure, cause it by having the process try to access a non existent address or by disabling the network link temporarily on the test machine.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.