From f350b6f16c668cd49dc24be3b6dd44c059fe2e0c Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Tue, 1 Aug 2023 18:49:26 +0200 Subject: properly forward errors on exec, return 123 on any exit status 1-254 Use the CLOEXEC pipe trick to detect if exec happened; read the errno from the pipe if it wasn't closed due to exec. --- xe.1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xe.1') diff --git a/xe.1 b/xe.1 index b0c1a78..e37db66 100644 --- a/xe.1 +++ b/xe.1 @@ -1,4 +1,4 @@ -.Dd November 3, 2017 +.Dd August 1, 2023 .Dt XE 1 .Os .Sh NAME @@ -247,7 +247,7 @@ follows the convention of GNU and OpenBSD xargs: .It 0 on success .It 123 -if any invocation of the command exited with status 1 to 125. +if any invocation of the command exited with status 1 to 254. .It 124 if the command exited with status 255 .It 125 -- cgit 1.4.1