I have a problem with exit().
I have 2 process, processA and processB.
processA spwans processB.
i have a signal handler for SIGCHLD signal in processA.
To test the handler, i just inserted an exit(1) in processB.
The processes are running on pentium board, can be monitored through
serial port.(hyperterminal software)
i saw that signal handler is getting invoked through debug printf.But CPU
hangs after few comands at the hyperterminal.
After processB exits, we typed few commands like sin, ls, ps etc. But CPU
hanged after few command execution with a SIGSEV fault like /bin
Is it an exit issue or usage of exit in thr program.
I read in some technical article that whenever a child wanted to exit, use
_exit instead os exit??
we don’t understand?