aboutsummaryrefslogtreecommitdiffstats
path: root/getpass.c
diff options
context:
space:
mode:
Diffstat (limited to 'getpass.c')
-rw-r--r--getpass.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/getpass.c b/getpass.c
index d0606e45..447a8f0c 100644
--- a/getpass.c
+++ b/getpass.c
@@ -186,6 +186,5 @@ restore_tty_state()
RETSIGTYPE sigint_handler ()
{
restore_tty_state();
- fputs("\nCaught signal... bailing out.\n", stderr);
- exit(1);
+ error(1, 0, "\nCaught signal... bailing out.");
}