[Csci551-talk] Can router processes quit without an exit()?
johnh at ISI.EDU
Tue Mar 23 18:53:47 PST 2004
On Mon, 22 Mar 2004 11:14:19 PST, ajay salpekar wrote:
>I have this problem in stage2, where my routers seem to die on me. They don't
>exit the while(1) loop (that contains the select), and they still dont show up
>in the process list after I do a "ps gx". I don't even have an "exit()"
>command anywhere in my router functions.
>Also, and more importantly, my packet flooding just seems to stop - the
>program quits, after say about 100 message exchanges. Where have all my
>routers gone? Anyone any ideas please?
Sounds like your program has a bug and is crashing.
You need to debug it.
I recommend printfs or gdb or ddd.
See the gdb and ddd "attach" commands to connect to forked processes.
More information about the Csci551-talk