Re: [OpenWrt-Devel] [PATCH 2/2] procd: add notification if running in container

2019-05-23 Thread Petr Štetiar
Paul Spooren [2019-05-23 13:38:52]: > >> +++ b/state.c > >> @@ -101,6 +101,9 @@ static void state_enter(void) > >>switch (state) { > >>case STATE_EARLY: > >>LOG("- early -\n"); > >> + if (is_container()) > >> + LOG("This isn't real life. I'm running i

Re: [OpenWrt-Devel] [PATCH 2/2] procd: add notification if running in container

2019-05-23 Thread Paul Spooren
On 5/23/19 10:42 AM, Petr Štetiar wrote: > Paul Spooren [2019-05-22 19:24:19]: > >> Signed-off-by: Paul Spooren >> --- >> state.c | 3 +++ >> 1 file changed, 3 insertions(+) >> >> diff --git a/state.c b/state.c >> index ff1734f..9f196ee 100644 >> --- a/state.c >> +++ b/state.c >> @@ -101,6 +101,

Re: [OpenWrt-Devel] [PATCH 2/2] procd: add notification if running in container

2019-05-23 Thread Petr Štetiar
Paul Spooren [2019-05-22 19:24:19]: > Signed-off-by: Paul Spooren > --- > state.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/state.c b/state.c > index ff1734f..9f196ee 100644 > --- a/state.c > +++ b/state.c > @@ -101,6 +101,9 @@ static void state_enter(void) > switch (st

[OpenWrt-Devel] [PATCH 2/2] procd: add notification if running in container

2019-05-22 Thread Paul Spooren
Signed-off-by: Paul Spooren --- state.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/state.c b/state.c index ff1734f..9f196ee 100644 --- a/state.c +++ b/state.c @@ -101,6 +101,9 @@ static void state_enter(void) switch (state) { case STATE_EARLY: LOG("- ea