projects
/
disktools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4240cfa
)
[PATCH] fio: allow timeout == 0 to mean run forever
author
Jens Axboe
<axboe@suse.de>
Wed, 19 Oct 2005 11:45:12 +0000
(13:45 +0200)
committer
Jens Axboe
<axboe@suse.de>
Wed, 19 Oct 2005 11:45:12 +0000
(13:45 +0200)
fio.c
patch
|
blob
|
blame
|
history
diff --git
a/fio.c
b/fio.c
index d0d1a37c50508fae3b1302982657981b2c043f83..b35631a0bb9df0527588787effe820114368d5f8 100644
(file)
--- a/
fio.c
+++ b/
fio.c
@@
-947,10
+947,6
@@
int parse_options(int argc, char *argv[])
case 't':
parm++;
timeout = atoi(parm);
- if (!timeout) {
- printf("bad timeout\n");
- timeout = DEF_TIMEOUT;
- }
break;
case 'w':
parm++;
@@
-1035,8
+1031,10
@@
int main(int argc, char *argv[])
}
}
- signal(SIGALRM, sig_handler);
- alarm(timeout);
+ if (timeout) {
+ signal(SIGALRM, sig_handler);
+ alarm(timeout);
+ }
printf("Kicking off %d threads\n", thread_number);
fflush(stdout);