From a7eb8aa2ee779e87fcb8dc1c7269877a87b06a33 Mon Sep 17 00:00:00 2001 From: compudj Date: Thu, 2 Feb 2006 20:14:07 +0000 Subject: [PATCH] remove flush git-svn-id: http://ltt.polymtl.ca/svn@1512 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/lttd/lttd.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/ltt/branches/poly/lttd/lttd.c b/ltt/branches/poly/lttd/lttd.c index 2724088..2601d80 100644 --- a/ltt/branches/poly/lttd/lttd.c +++ b/ltt/branches/poly/lttd/lttd.c @@ -332,8 +332,14 @@ int read_subbuffer(struct fd_pair *pair) perror("Error in writing to file"); goto write_error; } - - +#if 0 + err = fsync(pair->trace); + if(err < 0) { + ret = errno; + perror("Error in writing to file"); + goto write_error; + } +#endif //0 write_error: err = ioctl(pair->channel, RELAYFS_PUT_SUBBUF, &consumed_old); if(err != 0) { @@ -644,7 +650,7 @@ int main(int argc, char ** argv) break; } if((int)tret != 0) { - printf("Error %s occured in thread %u\n", strerror(-(int)tret), i); + printf("Error %s occured in thread %u\n", strerror((int)tret), i); } } -- 2.34.1