Re: [systemd-devel] udev can fail to read stdout of processes spwaned in udev_event_spawn

2019-11-03 Thread Paul Davey
On Fri, 2019-11-01 at 10:13 +0100, Michal Sekletar wrote: > On Fri, Nov 1, 2019 at 1:49 AM Paul Davey > wrote: > > > > > What is the best way to fix this issue?  I have locally had success > > just calling the on_spawn_io callback in the process success branch > > of > > on_spawn_sigchld, but I

Re: [systemd-devel] udev can fail to read stdout of processes spwaned in udev_event_spawn

2019-11-01 Thread Michal Sekletar
On Fri, Nov 1, 2019 at 1:49 AM Paul Davey wrote: > What is the best way to fix this issue? I have locally had success > just calling the on_spawn_io callback in the process success branch of > on_spawn_sigchld, but I am unsure if this is an acceptable fix. In the callback, we call read() only o

[systemd-devel] udev can fail to read stdout of processes spwaned in udev_event_spawn

2019-10-31 Thread Paul Davey
Hi, In tracking down an issue we are having with usb-modeswitch I found that the root cause is an issue in udev where when the rule sets a PROGRAM= and uses the result it will sometimes receive an empty result even when the program did produce output. This appears to be because the on_spawn_sigch