1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-26 07:11:34 -08:00
emacs/exec
Po Lu 0fbe79727b Fix execution of /proc/self/exe within child processes
* exec/exec.h (struct exec_tracee): New field `new_child'.
Also, make `waiting_for_syscall' a bitfield.
* exec/trace.c (PTRACE_GETEVENTMSG): New declaration.
(MAX_TRACEES): Bump to 4096.
(handle_clone_prepare): New function.
(handle_clone): If required, set `new_child' and wait for a
ptrace event describing the parent to arrive.
(after_fork): Clear new field.
(exec_waitpid): Upon a ptrace event describing a clone, create
the child's tracee if it doesn't already exist.  Otherwise, copy
over the parent's cmdline and start running it.
2023-05-05 19:04:32 +08:00
..
config-mips.m4.in Update Android port 2023-05-01 11:28:22 +08:00
config.guess Add helper binary `exec1' 2023-04-30 21:37:19 +08:00
config.h.in Update Android port 2023-05-03 17:01:44 +08:00
config.sub Add helper binary `exec1' 2023-04-30 21:37:19 +08:00
configure.ac Update Android port 2023-05-03 17:01:44 +08:00
deps.mk Add helper binary `exec1' 2023-04-30 21:37:19 +08:00
exec.c Update Android port 2023-05-05 12:10:14 +08:00
exec.h Fix execution of /proc/self/exe within child processes 2023-05-05 19:04:32 +08:00
exec1.c Work around system restrictions regarding exec 2023-05-01 09:31:58 +08:00
install-sh Add helper binary `exec1' 2023-04-30 21:37:19 +08:00
loader-aarch64.s Fix ps name in Android subprocesses 2023-05-02 16:44:46 +08:00
loader-armeabi.s Fix ps name in Android subprocesses 2023-05-02 16:44:46 +08:00
loader-mips64el.s Fix ps name in Android subprocesses 2023-05-02 16:44:46 +08:00
loader-mipsel.s Remove extra debugging code 2023-05-03 09:23:06 +08:00
loader-x86.s Fix ps name in Android subprocesses 2023-05-02 16:44:46 +08:00
loader-x86_64.s Fix ps name in Android subprocesses 2023-05-02 16:44:46 +08:00
Makefile.in Update Android port 2023-05-03 07:53:38 +08:00
mipsel-user.h Update Android port 2023-05-01 11:28:22 +08:00
mipsfpu.c Add helper binary `exec1' 2023-04-30 21:37:19 +08:00
mipsfpu.h Add helper binary `exec1' 2023-04-30 21:37:19 +08:00
README Add helper binary `exec1' 2023-04-30 21:37:19 +08:00
test.c Add helper binary `exec1' 2023-04-30 21:37:19 +08:00
trace.c Fix execution of /proc/self/exe within child processes 2023-05-05 19:04:32 +08:00

This directory holds the source code to a library used to replace the
`execve' and `execveat' system calls, used by the Android port of
Emacs to start executables without intervention from the system.