summaryrefslogtreecommitdiff
path: root/btt/aqd.c
diff options
context:
space:
mode:
authorAlan D. Brunelle <alan.brunelle@hp.com>2009-01-23 09:48:21 -0500
committerAlan D. Brunelle <alan.brunelle@hp.com>2009-01-23 09:48:21 -0500
commit99bb5ebc255618e4af913d2e5f1bf268af552bdf (patch)
tree583ae4e2f228cdad0098560c21baf592d25dc259 /btt/aqd.c
parent69dd57c2986bb025d7de12ab6eb52d5cd130d453 (diff)
downloadblktrace-99bb5ebc255618e4af913d2e5f1bf268af552bdf.tar.gz
blktrace-99bb5ebc255618e4af913d2e5f1bf268af552bdf.tar.bz2
Fix btt to handle large numbers of output files
Simply bump resource limits if file opens fail, and retry. Signed-off-by: Alan D. Brunelle <alan.brunelle@hp.com>
Diffstat (limited to 'btt/aqd.c')
-rw-r--r--btt/aqd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/btt/aqd.c b/btt/aqd.c
index 6dc3a7a..f619975 100644
--- a/btt/aqd.c
+++ b/btt/aqd.c
@@ -43,7 +43,7 @@ void *aqd_init(char *str)
oname = malloc(strlen(aqd_name) + strlen(str) + 32);
sprintf(oname, "%s_%s.dat", aqd_name, str);
- if ((ap->fp = fopen(oname, "w")) == NULL) {
+ if ((ap->fp = my_fopen(oname, "w")) == NULL) {
perror(oname);
return NULL;
}