์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- Coding
- robotics
- ์ ์ฒ๊ธฐ
- ํฉ๋ณ
- ROS2
- sort
- ํด์ฑ ํจ์
- segmentation
- homogenous
- ๋ฆฌ๋ ์ค
- CentOS
- ํ์ ๋ณต์ก๋
- SQL
- MIPS
- sam2
- ๋คํธ์ํฌ ์ถฉ๋
- ๋งฅ์ผ์ด๋ธ
- Linux
- AI
- Computer
- ์ ๋ ฌ
- ๊ธฐ๊ตฌํ
- ์ ๋ณด์ฒ๋ฆฌ๊ธฐ์ฌ
- ๋ช ๋ น์ด
- ์ปดํจํฐ๊ตฌ์กฐ
- Java
- 3dof
- ์๊ณ ๋ฆฌ์ฆ
- homogeinous
- ์์ค ์ฝ๋ ํ์ง ๋ถ์
- Today
- Total
UTF-404
kill์ ๋ํด์ ์์๋ณด๊ธฐ!! โ๏ธ ๋ณธ๋ฌธ
๐ก signal ์ ํธ
- <1> SIGHUP โก๏ธ HUP ๋ก๊ทธ์์ (nohup : ๋ก๊ทธ์์ ํด๋ ํ๋ก๊ทธ๋จ ์คํ๋จ)
- <2> SIGINT โก๏ธ ctrl+c ๋์์ทจ์
- <9> SIGKILL โก๏ธ kill ๊ฐ์ ์ข ๋ฃ
- <15> SIGTERM โก๏ธ ์์ฉ ํ๋ก๊ทธ๋จ ๋ด๋ถ ์ข
๋ฃ (๊ธฐ๋ณธ๊ฐ)
ctrl+d ๋ช ๋ น์์ ๋ถํฐ ๋์ ์ข ๋ฃ - <19> SIGTSTOP โก๏ธ ctrl+z ๋์ ์ ์ง
https://stackoverflow.com/questions/11886812/what-is-the-difference-between-sigstop-and-sigtstp
What is the difference between SIGSTOP and SIGTSTP?
Just wondering about the difference between SIGSTOP and SIGTSTP signals.
stackoverflow.com
๐ kill ์์ธํ ์์๋ณด๊ธฐ
- kill [PID] ๋จ์
- kill -9 [PID] [PID]...... ๋ณต์
- killall (PPID ํ๋ก๊ทธ๋จ๋ช ) = ๊ด๋ จ๋ pid ๋ชจ๋๋ค ์ข ๋ฃ (์๋ฒ ์์ฒด ์์ ์ข ๋ฃ : ์ฐ๊ฒฐ์๋ค ๋ชจ๋ ์ข ๋ฃ)
๐ skill ์์ธํ ์์๋ณด๊ธฐ
- -kill ์ฌ์ฉ์/ํฐ๋ฏธ๋ ์ฌ์ฉ์๋ฐ ํฐ๋ฏธ๋ ํ๋ก์ธ์ค ๊ฐ์ ์ข ๋ฃ
- -stop ์ฌ์ฉ์/ํฐ๋ฏธ๋ ์ฌ์ฉ์๋ฐ ํฐ๋ฏธ๋ ํ๋ก์ธ์ค ๊ฐ์ ์ ์ง
- -cont ์ฌ์ฉ์/ํฐ๋ฏธ๋ ์ ์ง๋ ์ฌ์ฉ์๋ฐ ํฐ๋ฏธ๋ ํ๋ก์ธ์ค ์์
๐ zombie ํ๋ก์ธ์ค
โก๏ธ ๋ถ๋ชจ ํ๋ก์ธ์ค์๊ฒ ์์ ํ๋ก์ธ์ค ์๊ทธ๋์ด ์ ๋ฌ๋์ง ์๋ ์ํ
๐ nohup
โก๏ธ ์ฌ์ฉ์๊ฐ ๋ก๊ทธ์์ํ๊ฑฐ๋ ํฐ๋ฏธ๋ ์ฐฝ์ ๋ซ์๋ ๋ฐฑ๊ทธ๋ผ์ด๋๋ก ์คํ
๐ก ์ค์ ํธ๋ฌ๋ธ ์ํ ์์ญ์ ๋ํด ์กฐ๊ธ ์์๋ณด๊ธฐ!!
1. SIGHUP: ์ฐ๊ฒฐ๋terminal์ดhangupํ์์๋(terminate)
2. SIGINT: interrupt key(^C)๋ฅผ์
๋ ฅํ์์๋(terminate)
3. SIGQUIT: quit key(^\)๋ฅผ์
๋ ฅํ์์๋(terminate+core)
4. SIGILL: illegal instruction์์ํํ์์๋(terminate+core)
5. SIGTRAP: implementation defined hardware fault (terminate+core)
6. SIGABRT: abort์์คํ
ํธ์ถ์๋ถ๋ ์๋(terminate+core)
7. SIGBUS: implementation defined hardware fault (terminate+core)
8. SIGFPE: arithmetic exception, /0, floating-point overflow (terminate+core)
9. SIGKILL: process๋ฅผkillํ๊ธฐ์ํsignal, catch ํน์ignore๋ ์์๋signal์(terminate)
10. SIGUSR1: user defined signal 1 (terminate)
11. SIGSEGV: invalid memory reference (terminate+core)
12. SIGUSR2: user defined signal 2 (terminate)
13. SIGPIPE: reader๊ฐterminate๋pipe์writeํ ๊ฒฝ์ฐ๋ฐ์(terminate)
14. SIGALRM: alarm์์คํ
ํธ์ถํtimer๊ฐexpire๋๊ฒฝ์ฐ(terminate)
15. SIGTERM: kill์์คํ
ํธ์ถ์ด๋ณด๋ด๋software termination signal (terminate)
16. SIGCHLD: child๊ฐstop or exit๋์์๋parent์๊ฒ์ ๋ฌ๋๋์ ํธ(ignore)
17. SIGCONT: continue a stopped process (continue/ignore)
18. SIGSTOP: sendable stop signal, cannot be caught or ignored (stop process)
19. SIGTSTP: stop key(^Z)๋ฅผ์
๋ ฅํ์์๋(stop process)
20. SIGTTIN: background process๊ฐcontrol tty๋ก๋ถํฐreadํ ๊ฒฝ์ฐ(stop process)
21. SIGTTOU: background process๊ฐcontrol tty๋กwriteํ ๊ฒฝ์ฐ(stop process)
22. SIGURG: urgent condition on IO, socket์OOB data (ignore)
23. SIGXCPU: exceeded CPU time limit (terminate+core/ignore)
24. SIGXFSZ: exceeded file size limit (terminate+core/ignore)
25. SIGVTALRM: virtual time alarm, setitimer, (terminate)
26. SIGPROF: profiling time alarm, setitimer, (terminate)
27. SIGWINCH: terminal window size changed, (ignore)
28. SIGIO: ์ด๋คfd์์asynchronous I/O event๊ฐ๋ฐ์ํ์์๊ฒฝ์ฐ(terminate/ignore)
29. SIGPWR: system power fail (terminate/ignore)
30. SIGSYS: bad argument to system call (terminate+core)
'๋ฆฌ๋ ์ค' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
๋ฆฌ๋ ์ค ์์ถ์ ๋ํด ์์๋ณด๊ธฐ!! ๐จ (0) | 2024.02.17 |
---|---|
ํ๋ก์ธ์ค์ ๋ํด ์์๋ณด๊ธฐ!!๐ง๐ปโ๐ป (0) | 2024.02.17 |
๋ง์ดํธ ๊ฐ๋ ์์๋ณด๊ธฐ(1) (0) | 2024.02.03 |
๋ฆฌ๋ ์ค ๊ถํ ์ฌํ(2)!! ๐ง๐ปโ๐ป (0) | 2024.02.03 |
su ์ ๋ํด ์์๋ณด์!!๐ง๐ปโ๐ป (2) | 2024.01.27 |