[kbd] [PATCH] Print an error message when calls to exec* functions fail

Michael Schutte michi at uiae.at
Thu Aug 14 12:47:25 MSD 2008


Patch proposed by Ian Jackson <ian at chiark.greenend.co.uk> on
<http://bugs.debian.org/190387>.

Signed-off-by: Michael Schutte <michi at uiae.at>
---
 src/openvt.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/openvt.c b/src/openvt.c
index 0ae4d54..666b6e9 100644
--- a/src/openvt.c
+++ b/src/openvt.c
@@ -294,6 +294,7 @@ got_vtno:
          execlp(cmd, def_cmd, NULL);
       else
 	 execvp(cmd, &argv[optind]);
+      perror("openvt: exec failed");
       _exit(127);		/* exec failed */
    }
 
-- 
1.5.6.3




More information about the kbd mailing list