mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 18:11:00 +03:00
414f7249dc
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
22 lines
475 B
Plaintext
22 lines
475 B
Plaintext
dnl #
|
|
dnl # 4.20 API change
|
|
dnl # Added kernel_siginfo_t
|
|
dnl #
|
|
AC_DEFUN([ZFS_AC_KERNEL_SRC_SIGINFO], [
|
|
ZFS_LINUX_TEST_SRC([siginfo], [
|
|
#include <linux/signal_types.h>
|
|
],[
|
|
kernel_siginfo_t info __attribute__ ((unused));
|
|
])
|
|
])
|
|
|
|
AC_DEFUN([ZFS_AC_KERNEL_SIGINFO], [
|
|
AC_MSG_CHECKING([whether kernel_siginfo_t tyepedef exists])
|
|
ZFS_LINUX_TEST_RESULT([siginfo], [
|
|
AC_MSG_RESULT(yes)
|
|
AC_DEFINE(HAVE_SIGINFO, 1, [kernel_siginfo_t exists])
|
|
],[
|
|
AC_MSG_RESULT(no)
|
|
])
|
|
])
|