X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttd%2Flttd.c;h=2601d805df0187e82019d1460ffbfd5efeee219f;hb=f5eafc51d456f751a9c22e7d62b1f5c74b84c15f;hp=27240882189de464882d2f2ab1d64fa674fc8f29;hpb=b8d28629a136662a1d1372228d7a43b558e49497;p=lttv.git diff --git a/ltt/branches/poly/lttd/lttd.c b/ltt/branches/poly/lttd/lttd.c index 27240882..2601d805 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); } }