$a.out 0 sleep 10 Executing sleep in child In parent, waiting for child Exit status from child is 0 Parent exiting with 0 $ echo $? 0 $ a.out 0 sleep 10 /* Interrupted */ Executing sleep in child In parent, waiting for child Exit status from child is 2 Parent exiting with 0 $ echo $? 2000 $ a.out 1 sleep 10 Executing sleep in child In parent, waiting for child Exit status from child is 0 Parent exiting with 1 $ echo $? 1 $ a.out 1 sleep 10 /* Interrupted */ Executing sleep in child In parent, waiting for child Exit status from child is 2 Parent exiting with 1 $ echo $? 1 $ sleep 10 /* Interrupted */ $ echo $? 130 /* End of File */