X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=ovsdb%2Flog.c;h=c8dac10c9542064d737ca18d75805d0da63a5ed2;hb=18b9283b986ab65f64385981f4ba8e237f658c0d;hp=9c2e277ce4a642fa953f00d95e152911bc5dd785;hpb=c100e025e2ca1bc330512e003bac8359ee65318d;p=sliver-openvswitch.git diff --git a/ovsdb/log.c b/ovsdb/log.c index 9c2e277ce..c8dac10c9 100644 --- a/ovsdb/log.c +++ b/ovsdb/log.c @@ -337,7 +337,7 @@ ovsdb_log_write(struct ovsdb_log *file, struct json *json) /* Remove any partially written data, ignoring errors since there is * nothing further we can do. */ - ftruncate(fileno(file->stream), file->offset); + ignore(ftruncate(fileno(file->stream), file->offset)); goto error; }