exit(0) means Program(Process) terminate normally successfully..
exit(1) means program(process) terminate normally unsuccessfully..
If you want to observe this thing you must know signal handling and process management in Unix ...
know about sigaction, watipid()..for()...such....API...........