1
0
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:
Christophe Dumez 2009-12-15 13:01:57 +00:00
parent 8e39eef7aa
commit 690bb92154

View File

@ -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