author | Jeff King <peff@peff.net> | |
Tue, 22 Jul 2008 07:12:46 +0000 (03:12 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 26 Jul 2008 04:29:44 +0000 (21:29 -0700) | ||
commit | ccf08bc3d06050fbe9b76846f6e2ab6d1cd6bd09 | |
tree | 329272d9a8a8b220f0daa5764ad5cbde554d977e | tree | snapshot |
parent | b0320eaf6a25fbc4adf35d611c27006e6d853aa8 | commit | diff |
run-command: add pre-exec callback
This is a function provided by the caller which is called
_after_ the process is forked, but before the spawned
program is executed. On platforms (like mingw) where
subprocesses are forked and executed in a single call, the
preexec callback is simply ignored.
This will be used in the following patch to do some setup
for 'less' that must happen in the forked child.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This is a function provided by the caller which is called
_after_ the process is forked, but before the spawned
program is executed. On platforms (like mingw) where
subprocesses are forked and executed in a single call, the
preexec callback is simply ignored.
This will be used in the following patch to do some setup
for 'less' that must happen in the forked child.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
run-command.c | diff | blob | history | |
run-command.h | diff | blob | history |