[OpenWrt-Devel] [PATCH] procd: show process's exit code

John Crispin john at phrozen.org
Thu Jan 23 08:04:09 EST 2020


On 23/01/2020 13:58, ondrej.votava at cvut.cz wrote:
> +static int
> +instance_exit_code(int ret){
> +	if(WIFEXITED(ret))
> +	{
> +		return WEXITSTATUS(ret);
> +	}
> +	else if (WIFSIGNALED(ret))
> +	{
> +		return 128 + WTERMSIG(ret);
> +	}
> +	return 1;
> +}
> +

please make the orthographic syntax consistent with the rest of the code.
	John

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



More information about the openwrt-devel mailing list