[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Changing TERM TERM to HUP TERM
From: |
Ole Tange |
Subject: |
Re: Changing TERM TERM to HUP TERM |
Date: |
Sun, 24 Mar 2019 22:30:54 +0100 |
On Sun, Mar 10, 2019 at 8:29 PM Ole Tange <ole@tange.dk> wrote:
> To stop GNU Parallel today you need to send TERM to make it stop
> starting new jobs followed by another TERM to kill the running jobs.
>
> I am considering changing that to send HUP to stop starting new jobs
> and TERM to kill running jobs.
>
> This will make it easier to kill GNU Parallel:
>
> $ bash -c 'parallel -j1 sleep ::: 111 222' &
> # This would then kill the process group with bash and parallel
> $ kill -TERM -$!
>
> It will make it incompatible with previous versions.
So the newest version includes this. Please, please, please see if you
can break that.
Can you show an example where the new behavior is worse than the old?
/Ole