HomeFreeBSD

libzfs: sendrecv: send_progress_thread: handle SIGINFO/SIGUSR1

Description

libzfs: sendrecv: send_progress_thread: handle SIGINFO/SIGUSR1

POSIX timers target the process, not the thread (as does SIGINFO),
so we need to block it in the main thread which will die if interrupted.

Ref: https://101010.pl/@ed1conf@bsd.network/110731819189629373
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Jorgen Lundman <lundman@lundman.net>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #15113

Details

Provenance
наб <nabijaczleweli@nabijaczleweli.xyz>Authored on Aug 8 2023, 4:35 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Aug 25 2023, 8:33 PM
Parents
rG1e488eec606c: linux/spl/kmem_cache: undefine `kmem_cache_alloc` before defining it
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG6bdc7259d1a3: libzfs: sendrecv: send_progress_thread: handle SIGINFO/SIGUSR1 (authored by наб <nabijaczleweli@nabijaczleweli.xyz>).Aug 25 2023, 8:33 PM