From 60a978410f8c8e13ee130619cf5b0bb912d5d601 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 19 Jun 2005 14:09:57 +0000 Subject: * add gcc printf warning support git-svn-id: file:///home/lennart/svn/public/libdaemon/trunk@85 153bfa13-eec0-0310-be40-b0cb6a0e1b4b --- libdaemon/dpid.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libdaemon/dpid.c') diff --git a/libdaemon/dpid.c b/libdaemon/dpid.c index 7c90297..678826c 100644 --- a/libdaemon/dpid.c +++ b/libdaemon/dpid.c @@ -147,8 +147,10 @@ int daemon_pid_file_kill_wait(int s, int m) { int r; struct timeval tv = { 0, 100000 }; - if (time(NULL) > t) + if (time(NULL) > t) { + errno = ETIME; return -1; + } if ((r = kill(pid, 0)) < 0 && errno != ESRCH) return -1; -- cgit