Re: [systemd-devel] [PATCH 2/2] udev: Allow detection of udevadm settle timeout

2015-05-19 Thread Tom Gundersen
On Sat, May 2, 2015 at 12:21 PM, Nir Soffer wrote: > On Tue, Apr 21, 2015 at 12:41 AM, Tom Gundersen wrote: >> On Mon, Apr 13, 2015 at 3:04 PM, Nir Soffer wrote: >>> On Sat, Apr 11, 2015 at 6:58 PM, David Herrmann >>> wrote: > A program running this tool can detect a timeout (expected) or

Re: [systemd-devel] [PATCH 2/2] udev: Allow detection of udevadm settle timeout

2015-05-02 Thread Nir Soffer
On Tue, Apr 21, 2015 at 12:41 AM, Tom Gundersen wrote: > On Mon, Apr 13, 2015 at 3:04 PM, Nir Soffer wrote: >> On Sat, Apr 11, 2015 at 6:58 PM, David Herrmann >> wrote: A program running this tool can detect a timeout (expected) or an error (unexpected), and can change the program flo

Re: [systemd-devel] [PATCH 2/2] udev: Allow detection of udevadm settle timeout

2015-04-20 Thread Tom Gundersen
On Mon, Apr 13, 2015 at 3:04 PM, Nir Soffer wrote: > On Sat, Apr 11, 2015 at 6:58 PM, David Herrmann wrote: >>> A program running this tool can detect a timeout (expected) or an error >>> (unexpected), and can change the program flow based on this result. >>> >>> Without this, the only way to det

Re: [systemd-devel] [PATCH 2/2] udev: Allow detection of udevadm settle timeout

2015-04-13 Thread Nir Soffer
On Sat, Apr 11, 2015 at 6:58 PM, David Herrmann wrote: >> A program running this tool can detect a timeout (expected) or an error >> (unexpected), and can change the program flow based on this result. >> >> Without this, the only way to detect a timeout is to implement the timeout >> in the progra

Re: [systemd-devel] [PATCH 2/2] udev: Allow detection of udevadm settle timeout

2015-04-11 Thread David Herrmann
(Please keep the ML in CC) On Sat, Apr 11, 2015 at 5:38 PM, Nir Soffer wrote: > On Sat, Apr 11, 2015 at 1:50 PM, David Herrmann > wrote: >> >> Hi >> >> On Wed, Apr 8, 2015 at 9:40 PM, Nir Soffer wrote: >> > When udevadm settle times out, it exits with exit code 1. This make it >> > impossible f

Re: [systemd-devel] [PATCH 2/2] udev: Allow detection of udevadm settle timeout

2015-04-11 Thread David Herrmann
Hi On Wed, Apr 8, 2015 at 9:40 PM, Nir Soffer wrote: > When udevadm settle times out, it exits with exit code 1. This make it > impossible for users to detect a timeout and handle real errors. Now we > use exit code 3 on timeouts. What's the use-case for this? Thanks David > --- > src/udev/u

[systemd-devel] [PATCH 2/2] udev: Allow detection of udevadm settle timeout

2015-04-08 Thread Nir Soffer
When udevadm settle times out, it exits with exit code 1. This make it impossible for users to detect a timeout and handle real errors. Now we use exit code 3 on timeouts. --- src/udev/udevadm-settle.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/udev/udevadm-settl