termux-packages/packages/git/run-command.c.patch

26 lines
749 B
Diff
Raw Normal View History

2018-06-23 23:52:54 +02:00
diff -u -r ../git-2.18.0/run-command.c ./run-command.c
--- ../git-2.18.0/run-command.c 2018-06-21 17:18:50.000000000 +0000
+++ ./run-command.c 2018-06-23 21:33:38.289465325 +0000
@@ -490,8 +490,10 @@
2017-06-25 20:34:43 +02:00
#else
2018-06-23 23:52:54 +02:00
CHECK_BUG(pthread_sigmask(SIG_SETMASK, &all, &as->old),
2017-06-25 20:34:43 +02:00
"blocking all signals");
+# ifndef __ANDROID__
2018-06-23 23:52:54 +02:00
CHECK_BUG(pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &as->cs),
2017-06-25 20:34:43 +02:00
"disabling cancellation");
+# endif
#endif
}
2018-06-23 23:52:54 +02:00
@@ -501,8 +503,10 @@
2017-06-25 20:34:43 +02:00
if (sigprocmask(SIG_SETMASK, &as->old, NULL))
die_errno("sigprocmask");
#else
+# ifndef __ANDROID__
2018-06-23 23:52:54 +02:00
CHECK_BUG(pthread_setcancelstate(as->cs, NULL),
2017-06-25 20:34:43 +02:00
"re-enabling cancellation");
+# endif
2018-06-23 23:52:54 +02:00
CHECK_BUG(pthread_sigmask(SIG_SETMASK, &as->old, NULL),
2017-06-25 20:34:43 +02:00
"restoring signal mask");
#endif