=== modified file 'plugins.d/password-prompt.c' --- plugins.d/password-prompt.c 2009-02-04 06:52:40 +0000 +++ plugins.d/password-prompt.c 2009-02-05 02:33:05 +0000 @@ -51,13 +51,13 @@ ARGP_KEY_ARG, ARGP_KEY_END, ARGP_ERR_UNKNOWN */ -volatile bool quit_now = false; +volatile sig_atomic_t quit_now = 0; bool debug = false; const char *argp_program_version = "password-prompt " VERSION; const char *argp_program_bug_address = ""; static void termination_handler(__attribute__((unused))int signum){ - quit_now = true; + quit_now = 1; } int main(int argc, char **argv){ @@ -242,8 +242,8 @@ /* if(ret == 0), then the only sensible thing to do is to retry to read from stdin */ fputc('\n', stderr); - if(debug and not quit_now){ - /* If quit_now is true, we were interrupted by a signal, and + if(debug and quit_now == 0){ + /* If quit_now is nonzero, we were interrupted by a signal, and will print that later, so no need to show this too. */ fprintf(stderr, "getline() returned 0, retrying.\n"); }