[Top][All Lists]

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

Re: Changing TERM TERM to HUP TERM

From: Gary Johnson
Subject: Re: Changing TERM TERM to HUP TERM
Date: Sun, 10 Mar 2019 22:33:28 -0700
User-agent: Mutt/1.5.20 (2009-06-14)

On 2019-03-10, Ole Tange 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.
> What is your opinion?

A change seems OK, but using HUP for this purpose doesn't seem like
a good idea.  Its meaning is specified in the signal(7) man page and
that doesn't seem to match your proposed usage.  How about using
USR1 or USR2 instead?


reply via email to

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