Message ID | 20170919102157.24058-1-christian.storm@siemens.com |
---|---|
State | Accepted |
Headers | show |
Series | downloader: exit with EXIT_SUCCESS on success | expand |
On 19/09/2017 12:21, Christian Storm wrote: > Use EXIT_SUCCESS=0 instead of RECOVERY_STATUS:SUCCESS=3 > on downloader process exit. > > Signed-off-by: Christian Storm <christian.storm@siemens.com> > --- > corelib/downloader.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/corelib/downloader.c b/corelib/downloader.c > index b79d704..18dc12b 100644 > --- a/corelib/downloader.c > +++ b/corelib/downloader.c > @@ -394,5 +394,5 @@ int start_download(const char *fname, int argc, char *argv[]) > sleep(60); > } > > - exit(result); > + exit(result == SUCCESS ? EXIT_SUCCESS : result); > } > Applied to -master, thanks ! Best regards, Stefano Babic
diff --git a/corelib/downloader.c b/corelib/downloader.c index b79d704..18dc12b 100644 --- a/corelib/downloader.c +++ b/corelib/downloader.c @@ -394,5 +394,5 @@ int start_download(const char *fname, int argc, char *argv[]) sleep(60); } - exit(result); + exit(result == SUCCESS ? EXIT_SUCCESS : result); }
Use EXIT_SUCCESS=0 instead of RECOVERY_STATUS:SUCCESS=3 on downloader process exit. Signed-off-by: Christian Storm <christian.storm@siemens.com> --- corelib/downloader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)