On Fri, Apr 17, 2015 at 8:06 PM, Martin d'Anjou <martin.danjo...@gmail.com> wrote: > Hi, > > The --halt 2 documentation says: > "Kill off all jobs immediately and exit without clean up." > > When I look in the source, I see in Job::should_we_halt() a call to the exit > statement: > > exit($job->exitstatus()) > > but I do not see a call that kills all the jobs. > > I am confused. Does the exit() statement kill all the jobs? What code kills > off all jobs when --halt 2 is specified?
You are right: GNU Parallel just exits. It should kill the children first. Implemented in git version. /Ole