Fredrik Fornwall
7 years ago
2 changed files with 19 additions and 12 deletions
@ -1,25 +1,25 @@ |
|||||
diff -u -r ../git-2.13.2/run-command.c ./run-command.c
|
diff -u -r ../git-2.18.0/run-command.c ./run-command.c
|
||||
--- ../git-2.13.2/run-command.c 2017-06-25 00:50:12.000000000 +0200
|
--- ../git-2.18.0/run-command.c 2018-06-21 17:18:50.000000000 +0000
|
||||
+++ ./run-command.c 2017-06-25 20:16:53.815627960 +0200
|
+++ ./run-command.c 2018-06-23 21:33:38.289465325 +0000
|
||||
@@ -491,8 +491,10 @@
|
@@ -490,8 +490,10 @@
|
||||
#else |
#else |
||||
bug_die(pthread_sigmask(SIG_SETMASK, &all, &as->old), |
CHECK_BUG(pthread_sigmask(SIG_SETMASK, &all, &as->old), |
||||
"blocking all signals"); |
"blocking all signals"); |
||||
+# ifndef __ANDROID__
|
+# ifndef __ANDROID__
|
||||
bug_die(pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &as->cs), |
CHECK_BUG(pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &as->cs), |
||||
"disabling cancellation"); |
"disabling cancellation"); |
||||
+# endif
|
+# endif
|
||||
#endif |
#endif |
||||
} |
} |
||||
|
|
||||
@@ -502,8 +504,10 @@
|
@@ -501,8 +503,10 @@
|
||||
if (sigprocmask(SIG_SETMASK, &as->old, NULL)) |
if (sigprocmask(SIG_SETMASK, &as->old, NULL)) |
||||
die_errno("sigprocmask"); |
die_errno("sigprocmask"); |
||||
#else |
#else |
||||
+# ifndef __ANDROID__
|
+# ifndef __ANDROID__
|
||||
bug_die(pthread_setcancelstate(as->cs, NULL), |
CHECK_BUG(pthread_setcancelstate(as->cs, NULL), |
||||
"re-enabling cancellation"); |
"re-enabling cancellation"); |
||||
+# endif
|
+# endif
|
||||
bug_die(pthread_sigmask(SIG_SETMASK, &as->old, NULL), |
CHECK_BUG(pthread_sigmask(SIG_SETMASK, &as->old, NULL), |
||||
"restoring signal mask"); |
"restoring signal mask"); |
||||
#endif |
#endif |
||||
|
Loading…
Reference in new issue