mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 09:13:08 -07:00
- Catch CTRL+C and exit cleanly
This commit is contained in:
parent
8e39eef7aa
commit
690bb92154
1 changed files with 1 additions and 0 deletions
|
@ -227,6 +227,7 @@ int main(int argc, char *argv[]){
|
||||||
#ifndef Q_WS_WIN
|
#ifndef Q_WS_WIN
|
||||||
signal(SIGABRT, sigabrtHandler);
|
signal(SIGABRT, sigabrtHandler);
|
||||||
signal(SIGTERM, sigtermHandler);
|
signal(SIGTERM, sigtermHandler);
|
||||||
|
signal(SIGINT, sigtermHandler);
|
||||||
signal(SIGSEGV, sigsegvHandler);
|
signal(SIGSEGV, sigsegvHandler);
|
||||||
#endif
|
#endif
|
||||||
// Read torrents given on command line
|
// Read torrents given on command line
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue