diff options
author | Nikias Bassen | 2013-09-19 08:08:38 +0200 |
---|---|---|
committer | Nikias Bassen | 2013-09-19 08:08:38 +0200 |
commit | 17a5fa85e2978b385448e1a16822cb31ba64e284 (patch) | |
tree | 460f759a5a1fbaebc4bec4c073ff167112c721a6 /src/main.c | |
parent | f631e8e055dfcdae440631902ed8a38eb5109cb8 (diff) | |
download | usbmuxd-17a5fa85e2978b385448e1a16822cb31ba64e284.tar.gz usbmuxd-17a5fa85e2978b385448e1a16822cb31ba64e284.tar.bz2 |
make sure usbmuxd -x does not terminate when unpaired devices are still present
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) if(opt_udev) { if (sig == SIGUSR1) { usbmuxd_log(LL_INFO, "Caught SIGUSR1, checking if we can terminate (no more devices attached)..."); - if (device_get_count() > 0) { + if (device_get_count(1) > 0) { // we can't quit, there are still devices attached. usbmuxd_log(LL_NOTICE, "Refusing to terminate, there are still devices attached. Kill me with signal 15 (TERM) to force quit."); } else { |