mirror of
https://github.com/termux/termux-packages.git
synced 2024-11-27 06:18:57 +00:00
908bb6bf95
The issue https://github.com/termux/x11-packages/issues/537 (crashing
`xfce4-terminal`) has been resolved; it was caused by `close_range`:
6ff6542e90
12 lines
402 B
Diff
12 lines
402 B
Diff
--- a/src/missing.cc
|
|
+++ b/src/missing.cc
|
|
@@ -141,7 +141,7 @@
|
|
unsigned int last_fd,
|
|
unsigned int flags)
|
|
{
|
|
-#if defined(__linux__) && defined(SYS_close_range)
|
|
+#if defined(__linux__) && defined(SYS_close_range) && !defined(__ANDROID__)
|
|
return syscall(SYS_close_range,
|
|
first_fd,
|
|
last_fd == unsigned(-1) ? ~0u : last_fd,
|