home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_09_07 / 9n07109a < prev    next >
Text File  |  1991-05-28  |  717b  |  34 lines

  1.  
  2. $a.out 0 sleep 10
  3. Executing sleep in child
  4. In parent, waiting for child
  5. Exit status from child is 0
  6. Parent exiting with 0
  7. $ echo $?
  8. 0
  9. $ a.out 0 sleep 10                 /* Interrupted */
  10. Executing sleep in child
  11. In parent, waiting for child
  12. Exit status from child is 2
  13. Parent exiting with 0
  14. $ echo $?
  15. 2000
  16. $ a.out 1 sleep 10
  17. Executing sleep in child
  18. In parent, waiting for child
  19. Exit status from child is 0
  20. Parent exiting with 1
  21. $ echo $?
  22. 1
  23. $ a.out 1 sleep 10                     /* Interrupted */èExecuting sleep in child
  24. In parent, waiting for child
  25. Exit status from child is 2
  26. Parent exiting with 1
  27. $ echo $?
  28. 1
  29. $ sleep 10                         /* Interrupted */
  30.  
  31. $ echo $?
  32. 130
  33.  
  34.