pipeln

Pipeline creation tool
git clone https://git.sinitax.com/sinitax/pipeln
Log | Files | Refs | README | LICENSE | sfeed.txt

commit 29f6aee4d9c8df7375b369ddba9121f1cb4498bf
parent fd350bad9f011b443d27740667c141fc57d2d36e
Author: Louis Burda <quent.burda@gmail.com>
Date:   Fri,  9 Jun 2023 00:24:25 +0200

Offset WTERMSIG in exit code

Diffstat:
Mmain.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main.c b/main.c @@ -113,7 +113,7 @@ waitall(void) if (!exitcode && WIFEXITED(status)) exitcode = WEXITSTATUS(status); else if (!exitcode && WIFSIGNALED(status)) - exitcode = WTERMSIG(status); + exitcode = 128 + WTERMSIG(status); } while (rc >= 0 && errno != ECHILD); exit(exitcode);