bug-findutils
[Top][All Lists]
Advanced

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

[bug #64442] xargs closes stdin on receiving SIGUSR1 or SIGUSR2


From: Geoff Clare
Subject: [bug #64442] xargs closes stdin on receiving SIGUSR1 or SIGUSR2
Date: Wed, 19 Jul 2023 06:27:02 -0400 (EDT)

Follow-up Comment #2, bug #64442 (project findutils):

When fixing this, please also consider changing xargs to make it conform to
POSIX as regards signal handling. POSIX does not allow xargs to handle SIGUSR1
and SIGUSR2 differently from other signals. I.e. if they are inherited as
ignored they must be ignored, otherwise they must terminate xargs.

Two possible solutions:

1. Only enable special handling of SIGUSR1 and SIGUSR2 if the -P option is
used (as it's not in POSIX and can therefore change the behaviour).

2. Don't enable special handling of SIGUSR1 and SIGUSR2 if POSIXLY_CORRECT is
set in the environment (and -P is not used).



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?64442>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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