]> git.proxmox.com Git - mirror_zfs.git/commit - config/kernel.m4
Add SIGSTOP and SIGTSTP handling to issig
authorPaul Dagnelie <paulcd2000@gmail.com>
Thu, 15 Apr 2021 20:34:35 +0000 (13:34 -0700)
committerGitHub <noreply@github.com>
Thu, 15 Apr 2021 20:34:35 +0000 (13:34 -0700)
commit414f7249dc32a579060441a644387a58e91d300a
tree4ff462d648111fd149b2f3aab032e3155121f38a
parentc95c5176b6a38ed5e84bcbb621e99b2d8599fb07
Add SIGSTOP and SIGTSTP handling to issig

This change adds SIGSTOP and SIGTSTP handling to the issig function;
this mirrors its behavior on Solaris. This way, long running kernel
tasks can be stopped with the appropriate signals. Note that doing
so with ctrl-z on the command line doesn't return control of the tty
to the shell, because tty handling is done separately from stopping
the process. That can be future work, if people feel that it is a
necessary addition.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Signed-off-by: Paul Dagnelie <pcd@delphix.com>
Issue #810
Issue #10843
Closes #11801
config/kernel-siginfo.m4 [new file with mode: 0644]
config/kernel-signal-stop.m4 [new file with mode: 0644]
config/kernel-special-state.m4 [new file with mode: 0644]
config/kernel.m4
include/os/linux/spl/sys/signal.h
include/os/linux/spl/sys/thread.h
module/os/linux/spl/spl-thread.c