summaryrefslogtreecommitdiff
path: root/timedrun.c
diff options
context:
space:
mode:
authorTrond Norbye <Trond.Norbye@sun.com>2009-08-27 15:22:49 +0200
committerDustin Sallings <dustin@spy.net>2009-09-02 16:08:07 -0700
commit8cb285bc7eba95cdd3ad23d749bef2bc8c01d9d7 (patch)
treed90d98ead33116c49308f002563e7b29c7a04c4d /timedrun.c
parent9791b7794e5439baaced1fd4afa26e09f33cfc36 (diff)
downloadmemcached-8cb285bc7eba95cdd3ad23d749bef2bc8c01d9d7.tar.gz
Print a message on stderr when the timeout occurs
Diffstat (limited to 'timedrun.c')
-rw-r--r--timedrun.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/timedrun.c b/timedrun.c
index 5c93ed7..04f6aa2 100644
--- a/timedrun.c
+++ b/timedrun.c
@@ -45,6 +45,9 @@ static int wait_for_process(pid_t pid)
case 0:
/* On the first iteration, pass the signal through */
sig = caught > 0 ? caught : SIGTERM;
+ if (caught == SIGALRM) {
+ fprintf(stderr, "Timeout.. killing the process\n");
+ }
break;
case 1:
sig = SIGTERM;