path: root/run-command.h
diff options
authorJeff King <>2012-06-05 08:56:04 (GMT)
committerJunio C Hamano <>2012-06-05 16:38:00 (GMT)
commite8320f350f523c3219ff8ec639663193941af57d (patch)
treefd9775cede092c35489dbf504607ed814f3e75c0 /run-command.h
parent3fe4498197ced84886b4adaddf18f1109b477f8e (diff)
pager: drop "wait for output to run less" hack
Commit 35ce862 (pager: Work around window resizing bug in 'less', 2007-01-24) causes git's pager sub-process to wait to receive input after forking but before exec-ing the pager. To handle this, run-command had to grow a "pre-exec callback" feature. Unfortunately, this feature does not work at all on Windows (where we do not fork), and interacts poorly with run-command's parent notification system. Its use should be discouraged. The bug in less was fixed in version 406, which was released in June 2007. It is probably safe at this point to remove our workaround. That lets us rip out the preexec_cb feature entirely. Signed-off-by: Jeff King <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'run-command.h')
1 files changed, 0 insertions, 1 deletions
diff --git a/run-command.h b/run-command.h
index 44f7d2b..850c638 100644
--- a/run-command.h
+++ b/run-command.h
@@ -39,7 +39,6 @@ struct child_process {
unsigned stdout_to_stderr:1;
unsigned use_shell:1;
unsigned clean_on_exit:1;
- void (*preexec_cb)(void);
int start_command(struct child_process *);