X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ovsdb%2Flog.c;h=c8dac10c9542064d737ca18d75805d0da63a5ed2;hb=95440284bdf8ac9a94c3e119d011d76acab577a7;hp=9c2e277ce4a642fa953f00d95e152911bc5dd785;hpb=41709cccb8099972f9c6c3faf583b1286cb92e8a;p=openvswitch diff --git a/ovsdb/log.c b/ovsdb/log.c index 9c2e277c..c8dac10c 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; }