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

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


On 23/01/2020 14:15, ondrej.votava at cvut.cz wrote:
>   
> +static int
> +instance_exit_code(int ret)
> +{
> +	if(WIFEXITED(ret)) {
           ^ missing space
> +		return WEXITSTATUS(ret);
> +	}
         no new line here
> +	else if (WIFSIGNALED(ret)) {
> +		return 128 + WTERMSIG(ret);
         is there a define for 128 ?
> +	}
> +	return 1;
> +}
> +

	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