]> git.ipfire.org Git - thirdparty/libvirt.git/commit
iohelper: Don't report errors on special FDs
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 5 Nov 2012 14:42:53 +0000 (15:42 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 5 Nov 2012 15:55:42 +0000 (16:55 +0100)
commit46325e51310344872597453ba5d621afa88d44c1
tree20bcd26c18f164d5f8e05ca874eaf32449e6ea49
parentb27b712c24f5c19837288292a59ab8fbe0517568
iohelper: Don't report errors on special FDs

Some FDs may not implement fdatasync() functionality,
e.g.  pipes. In that case EINVAL or EROFS is returned.
We don't want to fail then nor report any error.

Reported-by: Christophe Fergeau <cfergeau@redhat.com>
src/util/iohelper.c