Use Exit-Code 1 on abort - thinglaunch - A simple command and password promtper for X11. HTML git clone git://bitreich.org/thinglaunch DIR Log DIR Files DIR Refs DIR Tags DIR LICENSE --- DIR commit ea4447f1720d7ef60229bc29b3a0fc12c0d39ccb DIR parent 50920755d6cdfc642d76cecac2dbee9730af77c7 HTML Author: Christoph Polcin <labs@polcin.de> Date: Mon, 12 Mar 2018 11:49:46 +0100 Use Exit-Code 1 on abort Signed-off-by: Christoph Polcin <labs@polcin.de> Signed-off-by: Christoph Lohmann <20h@r-36.net> Diffstat: M thinglaunch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- DIR diff --git a/thinglaunch.c b/thinglaunch.c @@ -401,7 +401,7 @@ keypress(XKeyEvent *keyevent) switch(key_symbol) { case XK_Escape: - exit(0); + exit(1); break; case XK_BackSpace: len = wcslen(command); @@ -417,7 +417,7 @@ keypress(XKeyEvent *keyevent) break; case XK_c: if (keyevent->state & ControlMask) - exit(0); + exit(1); default: if (key_symbol > 255) break;