[OpenWrt-Devel] [PATCH 1/2] Provide meaningful error messages when fork fails.

Felix Fietkau nbd at openwrt.org
Mon Jul 6 17:16:05 EDT 2015


On 2015-06-26 00:23, Juliusz Chroboczek wrote:
> ---
>  inittab.c | 6 +++---
>  rcS.c     | 4 +++-
>  2 files changed, 6 insertions(+), 4 deletions(-)
> 
> diff --git a/inittab.c b/inittab.c
> index eb402f8..2767e17 100644
> --- a/inittab.c
> +++ b/inittab.c
> @@ -116,13 +116,13 @@ static void fork_worker(struct init_action *a)
>  		execvp(a->argv[0], a->argv);
>  		ERROR("Failed to execute %s\n", a->argv[0]);
>  		exit(-1);
> -	}
> -
> -	if (a->proc.pid > 0) {
> +	} if (a->proc.pid > 0) {
Why change the indentation here?

- Felix
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list