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
GitHub <noreply@github.com>Committed on Aug 8 2023, 4:35 PM
Parents
rG36261c8238df: Linux 6.5 compat: replace generic_file_splice_read with filemap_splice_read
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG683edb32b738: libzfs: sendrecv: send_progress_thread: handle SIGINFO/SIGUSR1 (authored by наб <nabijaczleweli@nabijaczleweli.xyz>).Aug 8 2023, 4:35 PM