svn commit: samba r14810 - in trunk/source/script/tests: .

metze at samba.org metze at samba.org
Thu Mar 30 09:34:37 GMT 2006


Author: metze
Date: 2006-03-30 09:34:36 +0000 (Thu, 30 Mar 2006)
New Revision: 14810

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=14810

Log:
- add my email address
- fix usage()
- remove unused var

metze
Modified:
   trunk/source/script/tests/timelimit.c


Changeset:
Modified: trunk/source/script/tests/timelimit.c
===================================================================
--- trunk/source/script/tests/timelimit.c	2006-03-30 09:34:02 UTC (rev 14809)
+++ trunk/source/script/tests/timelimit.c	2006-03-30 09:34:36 UTC (rev 14810)
@@ -1,5 +1,6 @@
 /* run a command with a limited timeout
    tridge at samba.org, June 2005
+   metze at samba.org, March 2006
 
    attempt to be as portable as possible (fighting posix all the way)
 */
@@ -17,9 +18,11 @@
 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 @@
 int main(int argc, char *argv[])
 {
 	int maxtime, ret=1;
-	pid_t pgid;
 
 	if (argc < 3) {
 		usage();



More information about the samba-cvs mailing list