summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-03-30 09:34:02 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:15:49 -0500
commitc3624eb7c44487108a18e8fb57ca8ab132ecfd49 (patch)
treedda0c1e780ff21b1a977f03704764cb58b21e1ad
parent75c965d3a45b6f72b2d2eeb5937ce19dc33af419 (diff)
downloadsamba-c3624eb7c44487108a18e8fb57ca8ab132ecfd49.tar.gz
samba-c3624eb7c44487108a18e8fb57ca8ab132ecfd49.tar.bz2
samba-c3624eb7c44487108a18e8fb57ca8ab132ecfd49.zip
r14809: - add my email address
- fix usage() - remove unused var metze (This used to be commit 20782719d9eda7609788c132356db7107b7fe04a)
-rw-r--r--source3/script/tests/timelimit.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/script/tests/timelimit.c b/source3/script/tests/timelimit.c
index dc11720ec1..5b8281cb0d 100644
--- a/source3/script/tests/timelimit.c
+++ b/source3/script/tests/timelimit.c
@@ -1,5 +1,6 @@
/* run a command with a limited timeout
tridge@samba.org, June 2005
+ metze@samba.org, March 2006
attempt to be as portable as possible (fighting posix all the way)
*/
@@ -17,9 +18,11 @@ static pid_t child_pid;
static void usage(void)
{
printf("usage: timelimit <time> <command>\n");
- printf(" SIGALRM - passes SIGKILL to command's process group and exit(1)\n");
printf(" SIGUSR1 - passes SIGTERM to command's process group\n");
- printf(" SIGTERM - passes SIGTERM to command's process group and exit(0)\n");
+ printf(" SIGALRM - passes SIGTERM to command's process group\n");
+ printf(" after 5s SIGKILL will be passed and exit(1)\n");
+ printf(" SIGTERM - passes SIGTERM to command's process group\n");
+ printf(" after 1s SIGKILL will be passed and exit(1)\n");
}
static void sig_alrm_kill(int sig)
@@ -67,7 +70,6 @@ static void new_process_group(void)
int main(int argc, char *argv[])
{
int maxtime, ret=1;
- pid_t pgid;
if (argc < 3) {
usage();