udev: Fix ping timeout when settle timeout is 0
authorNir Soffer <nirsof@gmail.com>
Sat, 18 Apr 2015 23:49:47 +0000 (02:49 +0300)
committerDavid Herrmann <dh.herrmann@gmail.com>
Wed, 22 Apr 2015 17:16:58 +0000 (19:16 +0200)
commit7375b3c4871861f100860ea4c2848e66b60e6ca4
treeeb224cbf80bff9407042ca0809757f9caa0e5c25
parent6d785b6d07767834a7a00209b5de376ea42075fe
udev: Fix ping timeout when settle timeout is 0

When running udevadm settle --timeout=0, the ping always times out, and
udevadm will return 0 without checking the queue state.

(David: Use a reasonable timeout to still get the barrier provided by
 ctrl-ping)
src/udev/udevadm-settle.c