daemon: Allow daemon child process to report success or failure to parent.
[openvswitch] / ovsdb / log.c
index 9c2e277ce4a642fa953f00d95e152911bc5dd785..c8dac10c9542064d737ca18d75805d0da63a5ed2 100644 (file)
@@ -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;
     }