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

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

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

metze
Modified:
   branches/SAMBA_3_0/source/script/tests/timelimit.c


Changeset:
Modified: branches/SAMBA_3_0/source/script/tests/timelimit.c
===================================================================
--- branches/SAMBA_3_0/source/script/tests/timelimit.c  2006-03-30 09:24:31 UTC 
(rev 14808)
+++ branches/SAMBA_3_0/source/script/tests/timelimit.c  2006-03-30 09:34:02 UTC 
(rev 14809)
@@ -1,5 +1,6 @@
 /* run a command with a limited timeout
    [EMAIL PROTECTED], June 2005
+   [EMAIL PROTECTED], 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();

Reply via email to