diff options
| author | Po Lu | 2023-05-01 09:31:58 +0800 |
|---|---|---|
| committer | Po Lu | 2023-05-01 09:31:58 +0800 |
| commit | 5550816f5962943abd81fbf68901dad575f18c06 (patch) | |
| tree | 9fcb1305b7a3e80a349a9fba6f192d8b348cf7a5 /src/android.h | |
| parent | 9a7c645dd4ef38b72787e932d444a61ed4e04c63 (diff) | |
| download | emacs-5550816f5962943abd81fbf68901dad575f18c06.tar.gz emacs-5550816f5962943abd81fbf68901dad575f18c06.zip | |
Work around system restrictions regarding exec
* doc/emacs/android.texi (Android Environment): Document
`android-use-exec-loader'.
* exec/exec1.c (main): Set program group of child process.
* src/android.c (android_rewrite_spawn_argv): New function.
* src/android.h: Update prototypes.
* src/androidfns.c (syms_of_androidfns): New variable
`android_use_exec_loader'.
* src/callproc.c (emacs_spawn): Rewrite the argument vector to
use exec1 if necessary.
Diffstat (limited to 'src/android.h')
| -rw-r--r-- | src/android.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/android.h b/src/android.h index 24666aaf989..62d420d4cce 100644 --- a/src/android.h +++ b/src/android.h | |||
| @@ -190,6 +190,11 @@ extern void android_write_event (union android_event *); | |||
| 190 | 190 | ||
| 191 | extern unsigned int event_serial; | 191 | extern unsigned int event_serial; |
| 192 | 192 | ||
| 193 | |||
| 194 | |||
| 195 | /* Process related functions. */ | ||
| 196 | extern int android_rewrite_spawn_argv (const char ***); | ||
| 197 | |||
| 193 | #endif | 198 | #endif |
| 194 | 199 | ||
| 195 | /* JNI functions should not be built when Emacs is stubbed out for the | 200 | /* JNI functions should not be built when Emacs is stubbed out for the |