parallel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How does the --halt 2 option kill off all jobs?


From: Ole Tange
Subject: Re: How does the --halt 2 option kill off all jobs?
Date: Tue, 21 Apr 2015 00:53:10 +0200

On Fri, Apr 17, 2015 at 8:06 PM, Martin d'Anjou
<address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]