diff mbox series

downloader: exit with EXIT_SUCCESS on success

Message ID 20170919102157.24058-1-christian.storm@siemens.com
State Accepted
Headers show
Series downloader: exit with EXIT_SUCCESS on success | expand

Commit Message

Storm, Christian Sept. 19, 2017, 10:21 a.m. UTC
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(-)

Comments

Stefano Babic Sept. 20, 2017, 12:27 p.m. UTC | #1
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 mbox series

Patch

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);
 }