mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 07:18:08 +00:00
- Catch CTRL+C and exit cleanly
This commit is contained in:
parent
8e39eef7aa
commit
690bb92154
@ -227,6 +227,7 @@ int main(int argc, char *argv[]){
|
||||
#ifndef Q_WS_WIN
|
||||
signal(SIGABRT, sigabrtHandler);
|
||||
signal(SIGTERM, sigtermHandler);
|
||||
signal(SIGINT, sigtermHandler);
|
||||
signal(SIGSEGV, sigsegvHandler);
|
||||
#endif
|
||||
// Read torrents given on command line
|
||||
|
Loading…
Reference in New Issue
Block a user