aboutsummaryrefslogtreecommitdiffstats
path: root/src/login.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-11-19 02:19:08 +0100
committerMattias Andrée <maandree@operamail.com>2013-11-19 02:19:08 +0100
commitc3a88777291223b4ed750a3450abc373ecab8ecb (patch)
tree44065ac3ac76791d6f77452abd2d8e94cbc911f6 /src/login.c
parentm (diff)
downloadlibpassphrase-c3a88777291223b4ed750a3450abc373ecab8ecb.tar.gz
libpassphrase-c3a88777291223b4ed750a3450abc373ecab8ecb.tar.bz2
libpassphrase-c3a88777291223b4ed750a3450abc373ecab8ecb.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/login.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/login.c b/src/login.c
index 3ad1204..32f118f 100644
--- a/src/login.c
+++ b/src/login.c
@@ -193,5 +193,8 @@ void exec_shell(struct passwd* entry)
*(child_argv + child_argc) = NULL;
execvp(*child_argv, child_argv + 1);
+ perror("execvp");
+ sleep(ERROR_SLEEP);
+ _exit(1);
}