mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-27 11:29:36 +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
512 B
Plaintext
22 lines
512 B
Plaintext
dnl #
|
|
dnl # 4.17 API change
|
|
dnl # Added set_special_state() function
|
|
dnl #
|
|
AC_DEFUN([ZFS_AC_KERNEL_SRC_SET_SPECIAL_STATE], [
|
|
ZFS_LINUX_TEST_SRC([set_special_state], [
|
|
#include <linux/sched.h>
|
|
],[
|
|
set_special_state(TASK_STOPPED);
|
|
])
|
|
])
|
|
|
|
AC_DEFUN([ZFS_AC_KERNEL_SET_SPECIAL_STATE], [
|
|
AC_MSG_CHECKING([whether set_special_state() exists])
|
|
ZFS_LINUX_TEST_RESULT([set_special_state], [
|
|
AC_MSG_RESULT(yes)
|
|
AC_DEFINE(HAVE_SET_SPECIAL_STATE, 1, [set_special_state() exists])
|
|
],[
|
|
AC_MSG_RESULT(no)
|
|
])
|
|
])
|