libudev: monitor - fix error path in send_device
authorTom Gundersen <teg@jklm.no>
Wed, 11 Mar 2015 21:23:38 +0000 (22:23 +0100)
committerTom Gundersen <teg@jklm.no>
Thu, 12 Mar 2015 11:03:50 +0000 (12:03 +0100)
commita4445e88cece0444c66d70876b03065158dd4685
treec13565dd027703edcb6e88b05838c306399fdeb4
parent3c0bab4aaf70b2383aa4cbabf6059c48744e8960
libudev: monitor - fix error path in send_device

Return -errno rather than -1 in case sendmsg() fails.
src/libudev/libudev-monitor.c