What signal can make a program suddenly exit [or detach from channel]without
giving any warning?
{I have already catch error for failing in connect to channel}
I have writtern a real time program, which doesn’t use thread, but 5
separate programs running at the same time:
e.g.
…/gameAdmin
…/display_admin
…/painter
…courier
…/player //player1
…/player //player2
Only the program painter will be responsible for output using printf
But strange interrupt happens randomly.Sometimes everything is OK, while
some time one of the program cannot connect to channel. And the painter will
suddenly stop painting without any warning. I have use many printf to debug,
I find that some of the program exit “silently(without any warning)”, and
without running the command line: “name_detach”.
The most strange thing is that, it can stop AT THE MIDDLE of printf command
line,
i.e… output can be just part of the println.
It happens most when I redirect the painter output to a file rather then
print it in standard out.
I dun know how to debug as it comes out RANDOMLY… would anyone suggest
some methods to detect such real time program signal?
Thanks a lot.
()=()=()=()=()=()=()=()=()
^_^!
I ask because I am a novice.
()=()=()=()=()=()=()=()=()