Re: [OpenWrt-Devel] [PATCH procd 2/2] state: fix reboot causing shutdown inside LXC container

2020-01-23 Thread Paul Oranje
Op 23 jan. 2020, om 15:58 heeft Petr Štetiar het volgende geschreven: > > On January 23, 2020 1:04:16 PM UTC, Paul Oranje wrote: > >> Suggestion: log of this unexpected condition or even stronger, an >> assert(). > > All logging is killed already, logging just to serial console won't cut it,

Re: [OpenWrt-Devel] [PATCH procd 2/2] state: fix reboot causing shutdown inside LXC container

2020-01-23 Thread Petr Štetiar
On January 23, 2020 1:04:16 PM UTC, Paul Oranje wrote: >Suggestion: log of this unexpected condition or even stronger, an >assert(). All logging is killed already, logging just to serial console won't cut it, assert is overkill, which needs compiler flags/ifdef fiddling and who knows how that

[OpenWrt-Devel] [PATCH v2] procd: show process's exit code

2020-01-23 Thread Ondřej Votava
Adds feature to show exit code of processes launched by procd. The exit code is shown for finished process when ubus's service list method is called. The exit code value is computed according to waitpid(2) and http://tldp.org/LDP/abs/html/exitcodes.html Signed-off-by: Ondřej Votava --- service/

[OpenWrt-Devel] [PATCH] procd: show process's exit code

2020-01-23 Thread Ondřej Votava
Adds feature to show exit code of processes launched by procd. The exit code is shown for finished process when ubus's service list method is called. The exit code value is computed according to waitpid(2) and http://tldp.org/LDP/abs/html/exitcodes.html Signed-off-by: Ondřej Votava --- service/

[OpenWrt-Devel] [PATCH] procd: show process's exit code

2020-01-23 Thread Ondřej Votava
Adds feature to show exit code of processes launched by procd. The exit code is shown for finished process when ubus's service list method is called. The exit code value is computed according to waitpid(2) and http://tldp.org/LDP/abs/html/exitcodes.html Signed-off-by: Ondřej Votava --- service/

Re: [OpenWrt-Devel] [PATCH] procd: show process's exit code

2020-01-23 Thread Paul Oranje
Op 23 jan. 2020, om 14:15 heeft ondrej.vot...@cvut.cz het volgende geschreven: > > +static int > +instance_exit_code(int ret) > +{ > + if(WIFEXITED(ret)) { > + return WEXITSTATUS(ret); > + } > + else if (WIFSIGNALED(ret)) { The else should be omitted because, when the previ

[OpenWrt-Devel] [PATCH 2/2] procd: show process's exit code

2020-01-23 Thread ondrej . votava
From: Ondřej Votava Adds feature to show exit code of processes launched by procd. The exit code is shown for finished process when ubus's service list method is called. The exit code value is computed according to waitpid(2) and http://tldp.org/LDP/abs/html/exitcodes.html Signed-off-by: Ondřej

Re: [OpenWrt-Devel] [PATCH] procd: show process's exit code

2020-01-23 Thread John Crispin
On 23/01/2020 14:15, ondrej.vot...@cvut.cz wrote: +static int +instance_exit_code(int ret) +{ + if(WIFEXITED(ret)) { ^ missing space + return WEXITSTATUS(ret); + } no new line here + else if (WIFSIGNALED(ret)) { + return 128 +

[OpenWrt-Devel] [PATCH] procd: show process's exit code

2020-01-23 Thread ondrej . votava
From: Ondřej Votava Adds feature to show exit code of processes launched by procd. The exit code is shown for finished process when ubus's service list method is called. The exit code value is computed according to waitpid(2) and http://tldp.org/LDP/abs/html/exitcodes.html Signed-off-by: Ondřej

Re: [OpenWrt-Devel] [PATCH procd 2/2] state: fix reboot causing shutdown inside LXC container

2020-01-23 Thread Paul Oranje
Op 23 jan. 2020, om 10:28 heeft Petr Štetiar het volgende geschreven: > > Paul Oranje [2020-01-22 11:09:22]: > > Hi, > > thanks for review. > >>> + if (is_container()) { >>> + reboot(reboot_event); >> When reboot returns, hasn't something gone wrong then ? > > What do you sugges

Re: [OpenWrt-Devel] [PATCH] procd: show process's exit code

2020-01-23 Thread John Crispin
On 23/01/2020 13:58, ondrej.vot...@cvut.cz wrote: +static int +instance_exit_code(int ret){ + if(WIFEXITED(ret)) + { + return WEXITSTATUS(ret); + } + else if (WIFSIGNALED(ret)) + { + return 128 + WTERMSIG(ret); + } + return 1;

[OpenWrt-Devel] [PATCH] procd: show process's exit code

2020-01-23 Thread ondrej . votava
From: Ondřej Votava Adds feature to show exit code of processes launched by procd. The exit code is shown for finished process when ubus's service list method is called. The exit code value is computed according to waitpid(2) and http://tldp.org/LDP/abs/html/exitcodes.html Signed-off-by: Ondřej

Re: [OpenWrt-Devel] hostapd and Linux bridges

2020-01-23 Thread Paul Oranje
Op 22 jan. 2020, om 10:43 heeft Daniel Golle het volgende geschreven: > > On Wed, Jan 22, 2020 at 06:34:06AM +0200, Daniel Golle wrote: >> On Tue, Jan 21, 2020 at 11:34:22PM +0100, Mathias Kresin wrote: >>> 21/01/2020 20:22, Daniel Golle: On Tue, Jan 21, 2020 at 07:40:42PM +0100, Bjørn Mork

Re: [OpenWrt-Devel] [PATCH procd 2/2] state: fix reboot causing shutdown inside LXC container

2020-01-23 Thread Petr Štetiar
Paul Oranje [2020-01-22 11:09:22]: Hi, thanks for review. > > + if (is_container()) { > > + reboot(reboot_event); > When reboot returns, hasn't something gone wrong then ? What do you suggest? I dont know how that behaves in all environments in order to answer that question and I

Re: [OpenWrt-Devel] [PATCH] fw3: robustify flow table detection.

2020-01-23 Thread Jo-Philipp Wich
Hi, > This doesn't seem right to me in case target > 12, > MIN(sizeof(line), strlen(target)) perhaps? a simple strcmp() without len will be the most appropriate since both line (produced by fgets()) and target (a constant string literal) will be \0 terminated. ~ Jo signature.asc Description:

Re: [OpenWrt-Devel] [PATCH] ramips: ethernet: turn off flow control

2020-01-23 Thread Bjørn Mork
Rosen Penev writes: > Several users have been reporting crashing issues with the ethernet > driver. > > One source says that this is a silicon bug in mt7621: > https://github.com/openwrt/mt76/issues/211#issuecomment-569687506 > > A user that has been testing this has seen greater than 2-3 days up