dd dies on SIGUSR1
das at FreeBSD.ORG
Tue Mar 22 18:34:54 UTC 2011
On Tue, Mar 22, 2011, Chris Rees wrote:
> Since POSIX has SIGUSR as undefined, I think it's a POLA violation
> to have processes die when provided.
Quite the contrary: The default behavior of SIGUSR1 on FreeBSD
follows both POSIX and historical precedent, so changing it would
be a violation of POLA. Terminating the process is also the
default on Linux.
Linux dd's interpretation of SIGUSR1 seems rather poorly
considered, since as you note, utilities that don't handle it will
simply die unexpectedly. However, it certainly wouldn't hurt to
patch FreeBSD's dd to handle SIGUSR1 the same way as SIGINFO.
More information about the freebsd-standards