From 349bdda3524368ee30dc92cafb6914717017fcdd Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Thu, 7 Sep 2006 11:48:16 +0000 Subject: [PATCH] fix --- lib/fuse.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/lib/fuse.c b/lib/fuse.c index 434e40c..a2f6bb1 100644 --- a/lib/fuse.c +++ b/lib/fuse.c @@ -2430,15 +2430,13 @@ static int fuse_init_intr_signal(int signum, int *installed) return 0; } -static void fuse_restore_intr_signal(int signum, int installed) +static void fuse_restore_intr_signal(int signum) { - if (installed) { - struct sigaction sa; + struct sigaction sa; - memset(&sa, 0, sizeof(struct sigaction)); - sa.sa_handler = SIG_DFL; - sigaction(signum, &sa, NULL); - } + memset(&sa, 0, sizeof(struct sigaction)); + sa.sa_handler = SIG_DFL; + sigaction(signum, &sa, NULL); } struct fuse *fuse_new_common(struct fuse_chan *ch, struct fuse_args *args, -- 2.30.2