diff options
author | Trond Norbye <Trond.Norbye@sun.com> | 2009-08-27 15:22:49 +0200 |
---|---|---|
committer | Dustin Sallings <dustin@spy.net> | 2009-09-02 16:08:07 -0700 |
commit | 8cb285bc7eba95cdd3ad23d749bef2bc8c01d9d7 (patch) | |
tree | d90d98ead33116c49308f002563e7b29c7a04c4d /timedrun.c | |
parent | 9791b7794e5439baaced1fd4afa26e09f33cfc36 (diff) | |
download | memcached-8cb285bc7eba95cdd3ad23d749bef2bc8c01d9d7.tar.gz |
Print a message on stderr when the timeout occurs
Diffstat (limited to 'timedrun.c')
-rw-r--r-- | timedrun.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |