3 ms·
When you use ctrl+c, you are not killing the program, you are sending it a SIGTERM signal which essentially means « could you please stop yourself ? » so the pr
by pjerem 1y ago
When you use ctrl+c, you are not killing the program, you are sending it a SIGTERM signal which essentially means « could you please stop yourself ? » so the program have a chance to clean things before exiting.
kill -9 is sending a SIGKILL signal which, well, kills the program immediately.
- Vogtinator 1y agoctrl-c sends SIGINT.
- pjerem 1y agoYou are right ! Thank you !
- sfoley 1y agoSIGINT, not SIGTERM.
- pjerem 1y agoYou are right ! Thank you !