Message ID | 20210408052542.3509794-3-dominique.martinet@atmark-techno.com |
---|---|
State | Accepted |
Headers | show |
Series | [1/4] archive_handler: make 'missing path attribute' message an ERROR | expand |
On 08.04.21 07:25, Dominique Martinet wrote: > Signed-off-by: Dominique Martinet <dominique.martinet@atmark-techno.com> > --- > core/install_from_file.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/core/install_from_file.c b/core/install_from_file.c > index 680f6d58105f..1606fc5072f7 100644 > --- a/core/install_from_file.c > +++ b/core/install_from_file.c > @@ -55,6 +55,14 @@ static int endupdate(RECOVERY_STATUS status) > status == FAILURE ? "*failed* !" : > "was successful !"); > > + if (status == SUCCESS) { > + ipc_message msg; > + msg.data.procmsg.len = 0; > + if (ipc_postupdate(&msg) != 0 || msg.type != ACK) { > + end_status = EXIT_FAILURE; > + } > + } > + > pthread_mutex_lock(&mymutex); > pthread_cond_signal(&cv_end); > pthread_mutex_unlock(&mymutex); > Acked-by: Stefano Babic <sbabic@denx.de> Best regards, Stefano Babic
On 08.04.21 07:25, Dominique Martinet wrote: > Signed-off-by: Dominique Martinet <dominique.martinet@atmark-techno.com> > --- > core/install_from_file.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/core/install_from_file.c b/core/install_from_file.c > index 680f6d58105f..1606fc5072f7 100644 > --- a/core/install_from_file.c > +++ b/core/install_from_file.c > @@ -55,6 +55,14 @@ static int endupdate(RECOVERY_STATUS status) > status == FAILURE ? "*failed* !" : > "was successful !"); > > + if (status == SUCCESS) { > + ipc_message msg; > + msg.data.procmsg.len = 0; > + if (ipc_postupdate(&msg) != 0 || msg.type != ACK) { > + end_status = EXIT_FAILURE; > + } > + } > + > pthread_mutex_lock(&mymutex); > pthread_cond_signal(&cv_end); > pthread_mutex_unlock(&mymutex); > Applied to -master, thanks ! Best regards, Stefano Babic
diff --git a/core/install_from_file.c b/core/install_from_file.c index 680f6d58105f..1606fc5072f7 100644 --- a/core/install_from_file.c +++ b/core/install_from_file.c @@ -55,6 +55,14 @@ static int endupdate(RECOVERY_STATUS status) status == FAILURE ? "*failed* !" : "was successful !"); + if (status == SUCCESS) { + ipc_message msg; + msg.data.procmsg.len = 0; + if (ipc_postupdate(&msg) != 0 || msg.type != ACK) { + end_status = EXIT_FAILURE; + } + } + pthread_mutex_lock(&mymutex); pthread_cond_signal(&cv_end); pthread_mutex_unlock(&mymutex);
Signed-off-by: Dominique Martinet <dominique.martinet@atmark-techno.com> --- core/install_from_file.c | 8 ++++++++ 1 file changed, 8 insertions(+)