aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/os/freebsd/spl/sys/sig.h8
-rw-r--r--include/os/linux/spl/sys/signal.h5
-rw-r--r--include/sys/zfs_context.h3
3 files changed, 3 insertions, 13 deletions
diff --git a/include/os/freebsd/spl/sys/sig.h b/include/os/freebsd/spl/sys/sig.h
index a4d440d38..17fc65cbe 100644
--- a/include/os/freebsd/spl/sys/sig.h
+++ b/include/os/freebsd/spl/sys/sig.h
@@ -39,20 +39,14 @@
#include <sys/signalvar.h>
#include <sys/debug.h>
-#define FORREAL 0
-#define JUSTLOOKING 1
-
static __inline int
-issig(int why)
+issig(void)
{
struct thread *td = curthread;
struct proc *p;
int sig;
- ASSERT(why == FORREAL || why == JUSTLOOKING);
if (SIGPENDING(td)) {
- if (why == JUSTLOOKING)
- return (1);
p = td->td_proc;
PROC_LOCK(p);
mtx_lock(&p->p_sigacts->ps_mtx);
diff --git a/include/os/linux/spl/sys/signal.h b/include/os/linux/spl/sys/signal.h
index 6b538c896..cb4b33261 100644
--- a/include/os/linux/spl/sys/signal.h
+++ b/include/os/linux/spl/sys/signal.h
@@ -30,9 +30,6 @@
#include <linux/sched/signal.h>
#endif
-#define FORREAL 0 /* Usual side-effects */
-#define JUSTLOOKING 1 /* Don't stop the process */
-
-extern int issig(int why);
+extern int issig(void);
#endif /* SPL_SIGNAL_H */
diff --git a/include/sys/zfs_context.h b/include/sys/zfs_context.h
index 8f264b50e..e4711ce41 100644
--- a/include/sys/zfs_context.h
+++ b/include/sys/zfs_context.h
@@ -249,8 +249,7 @@ extern struct proc p0;
extern kthread_t *zk_thread_create(const char *name, void (*func)(void *),
void *arg, size_t stksize, int state);
-#define issig(why) (FALSE)
-#define ISSIG(thr, why) (FALSE)
+#define issig() (FALSE)
#define KPREEMPT_SYNC (-1)