aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
authorPo Lu2023-09-07 09:35:59 +0800
committerPo Lu2023-09-07 09:35:59 +0800
commit8b25edfbda6ed8973b483f700571e00a60f27002 (patch)
tree994ff56260b8f6d582400ac511ee42f0cfa8af3e /src/process.c
parent241616831024c9c9fe2b2378b611db0a560b9675 (diff)
downloademacs-8b25edfbda6ed8973b483f700571e00a60f27002.tar.gz
emacs-8b25edfbda6ed8973b483f700571e00a60f27002.zip
Port Proced to Android
* configure.ac (HAVE_PROCFS): Define if opsys is `android'. * src/android.c (android_set_task_name): New function. (android_run_select_thread, android_run_debug_thread): Set the name of the LWP for debugging purposes. * src/process.c (create_process): Set F_SETPIPE_SZ on Android in addition to GNU/Linux. * src/sysdep.c (procfs_ttyname, system_process_attributes) [__ANDROID__]: Enable procfs_ttyname on Android systems.
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/process.c b/src/process.c
index 08cb810ec13..dbd677e59d7 100644
--- a/src/process.c
+++ b/src/process.c
@@ -2206,9 +2206,10 @@ create_process (Lisp_Object process, char **new_argv, Lisp_Object current_dir)
2206 inchannel = p->open_fd[READ_FROM_SUBPROCESS]; 2206 inchannel = p->open_fd[READ_FROM_SUBPROCESS];
2207 forkout = p->open_fd[SUBPROCESS_STDOUT]; 2207 forkout = p->open_fd[SUBPROCESS_STDOUT];
2208 2208
2209#if defined(GNU_LINUX) && defined(F_SETPIPE_SZ) 2209#if (defined (GNU_LINUX) || defined __ANDROID__) \
2210 && defined (F_SETPIPE_SZ)
2210 fcntl (inchannel, F_SETPIPE_SZ, read_process_output_max); 2211 fcntl (inchannel, F_SETPIPE_SZ, read_process_output_max);
2211#endif 2212#endif /* (GNU_LINUX || __ANDROID__) && F_SETPIPE_SZ */
2212 } 2213 }
2213 2214
2214 if (!NILP (p->stderrproc)) 2215 if (!NILP (p->stderrproc))