diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2022-02-10 22:59:26 +0100 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2022-02-10 23:06:17 +0100 |
commit | 26eeca71fbb3ee76ad51d3b83b79992f165e5f06 (patch) | |
tree | 46a8ec47a90a24412892c793918cb188af18ea61 /src/sysdep.c | |
parent | 437382734a53e8fb311938d5dd8a39508e60b9bf (diff) | |
download | emacs-26eeca71fbb3ee76ad51d3b83b79992f165e5f06.tar.gz emacs-26eeca71fbb3ee76ad51d3b83b79992f165e5f06.tar.bz2 emacs-26eeca71fbb3ee76ad51d3b83b79992f165e5f06.zip |
Silence macOS vfork deprecation warnings
The vfork system call exists and works in macOS 11.6 but the compiler
gives a deprecation message; silence it, because the performance is
still better than that of plain fork. See discussion at
https://lists.gnu.org/archive/html/emacs-devel/2022-02/msg00260.html
* src/conf_post.h (VFORK): New #define.
* src/callproc.c (emacs_spawn):
* src/sysdep.c (sys_subshell): Use it.
Diffstat (limited to 'src/sysdep.c')
-rw-r--r-- | src/sysdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sysdep.c b/src/sysdep.c index d682e87cc71..c772aff6a02 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -664,7 +664,7 @@ sys_subshell (void) #else { char *volatile str_volatile = str; - pid = vfork (); + pid = VFORK (); str = str_volatile; } #endif |