From: Craig Small Date: Wed, 25 Jan 2012 10:44:57 +0000 (+1100) Subject: Moved sigalarm function in fuser X-Git-Tag: v22.15~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f723c338bb1c9515c95993bcb7f8545fecd5f2c6;p=psmisc Moved sigalarm function in fuser The sigalarm function was outside an #ifdef which meant it was defined but not used with certain configure parameters. Thanks to sami Kerola for pointing out the problem. --- diff --git a/src/fuser.c b/src/fuser.c index d5a50d8..ed966d2 100644 --- a/src/fuser.c +++ b/src/fuser.c @@ -1785,6 +1785,7 @@ scan_swaps(struct names *names_head, struct inode_list *ino_head, */ static sigjmp_buf jenv; +#ifdef HAVE_TIMEOUT_STAT static void sigalarm(int sig) { @@ -1792,7 +1793,6 @@ sigalarm(int sig) siglongjmp(jenv, 1); } -#ifdef HAVE_TIMEOUT_STAT static int timeout(stat_t func, const char *path, struct stat *buf, unsigned int seconds) {