]> git.proxmox.com Git - mirror_zfs.git/commit
libzfs: sendrecv: send_progress_thread: handle SIGINFO/SIGUSR1
authorнаб <nabijaczleweli@nabijaczleweli.xyz>
Tue, 8 Aug 2023 16:35:35 +0000 (18:35 +0200)
committerGitHub <noreply@github.com>
Tue, 8 Aug 2023 16:35:35 +0000 (09:35 -0700)
commit683edb32b73885d1718a2220fe08c4cd61e63fd1
treeeb87a49bb9847e613de0ca577c037cd2bbe92322
parent36261c8238df462b214854ccea1df4f060cf0995
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
lib/libzfs/Makefile.am
lib/libzfs/libzfs_sendrecv.c
man/man8/zfs-send.8