diff options
Diffstat (limited to 'tools/idevicebackup.c')
| -rw-r--r-- | tools/idevicebackup.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/idevicebackup.c b/tools/idevicebackup.c index 25f8014..d6d9228 100644 --- a/tools/idevicebackup.c +++ b/tools/idevicebackup.c | |||
| @@ -48,6 +48,10 @@ | |||
| 48 | #define LOCK_ATTEMPTS 50 | 48 | #define LOCK_ATTEMPTS 50 |
| 49 | #define LOCK_WAIT 200000 | 49 | #define LOCK_WAIT 200000 |
| 50 | 50 | ||
| 51 | #ifdef WIN32 | ||
| 52 | #define sleep(x) Sleep(x*1000) | ||
| 53 | #endif | ||
| 54 | |||
| 51 | static mobilebackup_client_t mobilebackup = NULL; | 55 | static mobilebackup_client_t mobilebackup = NULL; |
| 52 | static lockdownd_client_t client = NULL; | 56 | static lockdownd_client_t client = NULL; |
| 53 | static idevice_t phone = NULL; | 57 | static idevice_t phone = NULL; |
| @@ -831,9 +835,11 @@ int main(int argc, char *argv[]) | |||
| 831 | 835 | ||
| 832 | /* we need to exit cleanly on running backups and restores or we cause havok */ | 836 | /* we need to exit cleanly on running backups and restores or we cause havok */ |
| 833 | signal(SIGINT, clean_exit); | 837 | signal(SIGINT, clean_exit); |
| 834 | signal(SIGQUIT, clean_exit); | ||
| 835 | signal(SIGTERM, clean_exit); | 838 | signal(SIGTERM, clean_exit); |
| 839 | #ifndef WIN32 | ||
| 840 | signal(SIGQUIT, clean_exit); | ||
| 836 | signal(SIGPIPE, SIG_IGN); | 841 | signal(SIGPIPE, SIG_IGN); |
| 842 | #endif | ||
| 837 | 843 | ||
| 838 | /* parse cmdline args */ | 844 | /* parse cmdline args */ |
| 839 | for (i = 1; i < argc; i++) { | 845 | for (i = 1; i < argc; i++) { |
