in reply to Segmentation Fault
The fact that the ping program you need to use doesn't implement timeout is making your program very complicated, because you have to clean up hung child processes. Signals can help you here (though they may be causing you other grief, see next para), try setting the alarm clock to wake them up again. Then kill them. It's morbid, but what can you do?
I don't know why your sleep call doesn't seem to be working, but you can't use it with alarm.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Segmentation Fault
by LiTinOveWeedle (Scribe) on Mar 07, 2002 at 12:43 UTC | |
by virtualsue (Vicar) on Mar 07, 2002 at 17:35 UTC |