summaryrefslogtreecommitdiffstats
path: root/include/timer.h
diff options
context:
space:
mode:
authorKarel Zak2013-03-13 14:07:23 +0100
committerKarel Zak2013-03-13 14:07:23 +0100
commit77fa36d7c6033cd9eeba2b739b51e389e91af95d (patch)
treef160e1c2ecb568b7712a100f1a7dfc7afc86d4dc /include/timer.h
parentfsfreeze: check for collision between options (diff)
downloadkernel-qcow2-util-linux-77fa36d7c6033cd9eeba2b739b51e389e91af95d.tar.gz
kernel-qcow2-util-linux-77fa36d7c6033cd9eeba2b739b51e389e91af95d.tar.xz
kernel-qcow2-util-linux-77fa36d7c6033cd9eeba2b739b51e389e91af95d.zip
include/timer: return setitimer return value
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/timer.h')
-rw-r--r--include/timer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/timer.h b/include/timer.h
index b820453d4..79ef64919 100644
--- a/include/timer.h
+++ b/include/timer.h
@@ -4,7 +4,7 @@
#include <signal.h>
#include <sys/time.h>
-static inline void setup_timer(
+static inline int setup_timer(
struct itimerval *timer,
struct itimerval *old_timer,
struct sigaction *old_sa,
@@ -17,7 +17,7 @@ static inline void setup_timer(
sa.sa_flags = SA_RESETHAND;
sigaction(SIGALRM, &sa, old_sa);
- setitimer(ITIMER_REAL, timer, old_timer);
+ return setitimer(ITIMER_REAL, timer, old_timer);
}
static inline void cancel_timer(