Re: [OpenWrt-Devel] [PATCH] procd: delay inittab workers until the tty exists.

2015-01-16 Thread John Crispin
On 16/01/2015 21:19, Owen Kirby wrote: > Okay, I'll rewrite it. > > However: Is it polling for the existence of the tty device that is > unacceptable (would a solution using uloop_timeout_set() be okay?), > or would I need to process hotplug events from the kernel? > use hotplug events please

Re: [OpenWrt-Devel] [PATCH] procd: delay inittab workers until the tty exists.

2015-01-16 Thread Owen Kirby
Okay, I'll rewrite it. However: Is it polling for the existence of the tty device that is unacceptable (would a solution using uloop_timeout_set() be okay?), or would I need to process hotplug events from the kernel? Thanks, Owen On 15-01-15 10:31 PM, John Crispin wrote: nack, using magic d

Re: [OpenWrt-Devel] [PATCH] procd: delay inittab workers until the tty exists.

2015-01-15 Thread John Crispin
nack, using magic delays is a no go On 16/01/2015 04:15, Owen Kirby wrote: > If a process with a tty is specified in inittab, delay the worker > process until the tty exists. > > This allows starting consoles with terminals that get delayed until > after procd is reads inittab, > and it also allo

[OpenWrt-Devel] [PATCH] procd: delay inittab workers until the tty exists.

2015-01-15 Thread Owen Kirby
If a process with a tty is specified in inittab, delay the worker process until the tty exists. This allows starting consoles with terminals that get delayed until after procd is reads inittab, and it also allows hotplugging USB-to-serial adapters attached long after booting. Signed-off-by: O