diff options
| author | Maxime Coste <mawww@kakoune.org> | 2018-11-27 21:49:57 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2018-11-27 21:49:57 +1100 |
| commit | 5250593129b14feae02fdf449d5bf68b8c12ab70 (patch) | |
| tree | c113db508863665aadf94b466abf8bb76679c898 /src/input_handler.cc | |
| parent | c6d6060502a2c039d6ebd4b20aa91fa32bb07165 (diff) | |
ShellManager: Use vfork instead of fork
When large buffers have been opened, copying Kakoune's memory
page descriptors can get pretty slow, making fork more expensive
than necessary.
vfork avoids that problem. While not strictly conforming, it seems
the few calls we do before execve (open, close, dup2 and
set_signal_handler) would not cause any problems on platforms we
care about.
Diffstat (limited to 'src/input_handler.cc')
0 files changed, 0 insertions, 0 deletions
