summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2020-02-09 19:42:04 +0100
committerGravatar Nikias Bassen2020-02-09 19:42:04 +0100
commit45d78564fdced5aeca5e570404e7e968c36918f0 (patch)
tree139f762bd4c82d8f5de5e556ef4a2a64e5d32ac7
parent61babf5f54e7734ebf3044af4c6294524d4b29b5 (diff)
downloadlibimobiledevice-45d78564fdced5aeca5e570404e7e968c36918f0.tar.gz
libimobiledevice-45d78564fdced5aeca5e570404e7e968c36918f0.tar.bz2
idevicesyslog: Make sure CTRL+C works when waiting for passcode entry
-rw-r--r--tools/idevicesyslog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/idevicesyslog.c b/tools/idevicesyslog.c
index 5521736..a22c910 100644
--- a/tools/idevicesyslog.c
+++ b/tools/idevicesyslog.c
@@ -79,7 +79,7 @@ static int start_logging(void)
lerr = lockdownd_start_service(lockdown, SYSLOG_RELAY_SERVICE_NAME, &svc);
if (lerr == LOCKDOWN_E_PASSWORD_PROTECTED) {
fprintf(stderr, "*** Device is passcode protected, enter passcode on the device to continue ***\n");
- while (1) {
+ while (!quit_flag) {
lerr = lockdownd_start_service(lockdown, SYSLOG_RELAY_SERVICE_NAME, &svc);
if (lerr != LOCKDOWN_E_PASSWORD_PROTECTED) {
break;