Re: [PATCH v10 04/14] run-command: add clean_on_exit_handler

2016-10-16 Thread Lars Schneider
> On 16 Oct 2016, at 01:03, Johannes Schindelin > wrote: > > Hi Lars, > > On Sat, 15 Oct 2016, Lars Schneider wrote: > >> >>> On 11 Oct 2016, at 05:12, Johannes Schindelin >>> wrote: >>> >>> On Windows, pid_t translates to long long

Re: [PATCH v10 04/14] run-command: add clean_on_exit_handler

2016-10-16 Thread Johannes Schindelin
Hi Lars, On Sat, 15 Oct 2016, Lars Schneider wrote: > > > On 11 Oct 2016, at 05:12, Johannes Schindelin > > wrote: > > > > Hi Lars, > > > > On Sat, 8 Oct 2016, larsxschnei...@gmail.com wrote: > > > >> @@ -31,6 +32,15 @@ static void cleanup_children(int sig, int

Re: [PATCH v10 04/14] run-command: add clean_on_exit_handler

2016-10-15 Thread Lars Schneider
> On 11 Oct 2016, at 05:12, Johannes Schindelin > wrote: > > Hi Lars, > > On Sat, 8 Oct 2016, larsxschnei...@gmail.com wrote: > >> @@ -31,6 +32,15 @@ static void cleanup_children(int sig, int in_signal) >> while (children_to_clean) { >> struct

Re: [PATCH v10 04/14] run-command: add clean_on_exit_handler

2016-10-11 Thread Johannes Schindelin
Hi Lars, On Sat, 8 Oct 2016, larsxschnei...@gmail.com wrote: > @@ -31,6 +32,15 @@ static void cleanup_children(int sig, int in_signal) > while (children_to_clean) { > struct child_to_clean *p = children_to_clean; > children_to_clean = p->next; > + > +

[PATCH v10 04/14] run-command: add clean_on_exit_handler

2016-10-08 Thread larsxschneider
From: Lars Schneider Some processes might want to perform cleanup tasks before Git kills them due to the 'clean_on_exit' flag. Let's give them an interface for doing this. The feature is used in a subsequent patch. Please note, that the cleanup callback is not executed