Re: [PATCH 5/5] launch_editor: propagate SIGINT from editor to git

2012-11-30 Thread Jeff King
On Sun, Nov 11, 2012 at 08:48:38PM +0100, Johannes Sixt wrote: Am 11.11.2012 17:57, schrieb Jeff King: @@ -51,6 +51,8 @@ int launch_editor(const char *path, struct strbuf *buffer, const char *const *en sigchain_push(SIGINT, SIG_IGN); ret = finish_command(p);

[PATCH 5/5] launch_editor: propagate SIGINT from editor to git

2012-11-11 Thread Jeff King
We block SIGINT while the editor runs so that git is not killed accidentally by a stray ^C meant for the editor or its subprocesses. This works because most editors ignore SIGINT. However, some editor wrappers, like emacsclient, expect to die due to ^C. We detect the signal death in the editor