Re: Your opinion needed: Should GNU Parallel ignore, kill or wait for background children?

2016-05-24 Thread Ole Tange
On Tue, May 24, 2016 at 3:55 AM, Martin d'Anjou wrote: > On 16-05-23 06:46 PM, Ole Tange wrote: >> >> Should GNU Parallel ignore, kill or wait for background children? >> >> Example: >> >> $ parallel '(sleep 100) & echo' ::: 1 : > Do not leak processes. In the simple case, it is as bad as leaking

Re: Your opinion needed: Should GNU Parallel ignore, kill or wait for background children?

2016-05-24 Thread Martin d'Anjou
On 16-05-24 04:06 PM, Ole Tange wrote: GNU Make, which has a parallel feature, does not leak processes. GNU Parallel should not leak either. That, unfortunately, is not true. Try this Makefile: all: bash -c "(sleep 100) &" make -j will finish immediately - leaking the sleep process. Th