From: pcaulfield@sourceware.org <pcaulfield@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] cluster/dlm/tests/usertest asttest.c
Date: 19 Feb 2007 14:01:47 -0000 [thread overview]
Message-ID: <20070219140147.9384.qmail@sourceware.org> (raw)
CVSROOT: /cvs/cluster
Module name: cluster
Changes by: pcaulfield at sourceware.org 2007-02-19 14:01:45
Modified files:
dlm/tests/usertest: asttest.c
Log message:
Add delay switch
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/dlm/tests/usertest/asttest.c.diff?cvsroot=cluster&r1=1.3&r2=1.4
--- cluster/dlm/tests/usertest/asttest.c 2006/03/03 13:06:58 1.3
+++ cluster/dlm/tests/usertest/asttest.c 2007/02/19 14:01:45 1.4
@@ -138,6 +138,7 @@
{
char *resource = "LOCK-NAME";
int flags = 0;
+ int delay = 0;
int status;
int mode = LKM_EXMODE;
int convmode = -1;
@@ -148,7 +149,7 @@
/* Deal with command-line arguments */
opterr = 0;
optind = 0;
- while ((opt=getopt(argc,argv,"?m:nqupc:CvV")) != EOF)
+ while ((opt=getopt(argc,argv,"?m:nqupc:d:CvV")) != EOF)
{
switch(opt)
{
@@ -188,6 +189,10 @@
do_crash = 1;
break;
+ case 'd':
+ delay = atoi(optarg);
+ break;
+
case 'V':
printf("\nasttest version 0.1\n\n");
exit(1);
@@ -242,6 +247,9 @@
else
poll_for_ast();
+ if (delay)
+ sleep(delay);
+
if (!quiet)
{
fprintf(stderr, "unlocking %s...", resource);
reply other threads:[~2007-02-19 14:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070219140147.9384.qmail@sourceware.org \
--to=pcaulfield@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.