diff options
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -108,7 +108,7 @@ static void handle_signal(int sig) | |||
| 108 | if(opt_udev) { | 108 | if(opt_udev) { |
| 109 | if (sig == SIGUSR1) { | 109 | if (sig == SIGUSR1) { |
| 110 | usbmuxd_log(LL_INFO, "Caught SIGUSR1, checking if we can terminate (no more devices attached)..."); | 110 | usbmuxd_log(LL_INFO, "Caught SIGUSR1, checking if we can terminate (no more devices attached)..."); |
| 111 | if (device_get_count() > 0) { | 111 | if (device_get_count(1) > 0) { |
| 112 | // we can't quit, there are still devices attached. | 112 | // we can't quit, there are still devices attached. |
| 113 | usbmuxd_log(LL_NOTICE, "Refusing to terminate, there are still devices attached. Kill me with signal 15 (TERM) to force quit."); | 113 | usbmuxd_log(LL_NOTICE, "Refusing to terminate, there are still devices attached. Kill me with signal 15 (TERM) to force quit."); |
| 114 | } else { | 114 | } else { |
