kill:进程的暂停和继续

1038阅读 0评论2012-06-16 gjf05_05
分类:


  1. #define SIGHUP 1
  2. #define SIGINT 2
  3. #define SIGQUIT 3
  4. #define SIGILL 4
  5. #define SIGTRAP 5
  6. #define SIGABRT 6
  7. #define SIGIOT 6
  8. #define SIGBUS 7
  9. #define SIGFPE 8
  10. #define SIGKILL 9
  11. #define SIGUSR1 10
  12. #define SIGSEGV 11
  13. #define SIGUSR2 12
  14. #define SIGPIPE 13
  15. #define SIGALRM 14
  16. #define SIGTERM 15
  17. #define SIGSTKFLT 16
  18. #define SIGCHLD 17
  19. #define SIGCONT 18
  20. #define SIGSTOP 19
  21. #define SIGTSTP 20
  22. #define SIGTTIN 21
  23. #define SIGTTOU 22
  24. #define SIGURG 23
  25. #define SIGXCPU 24
  26. #define SIGXFSZ 25
  27. #define SIGVTALRM 26
  28. #define SIGPROF 27
  29. #define SIGWINCH 28
  30. #define SIGIO 29
  31. #define SIGPOLL SIGIO



暂停进程:

  1. $ kill -s SIGSTOP process-pid


继续进程:

  1. kill -s SIGCONT process-pid

上一篇:从汇编的角度深入理解C函数调用背后的各种细节
下一篇:十种思维方式(转载)