Allow Ctrl+C to interrupt during initialization.

This commit is contained in:
Daniel Beer 2010-08-31 09:32:07 +12:00
parent 0a3d1c9e11
commit 764e5c04a9
1 changed files with 1 additions and 1 deletions

2
main.c
View File

@ -449,7 +449,6 @@ int main(int argc, char **argv)
if (parse_cmdline_args(argc, argv, &args) < 0) if (parse_cmdline_args(argc, argv, &args) < 0)
return -1; return -1;
ctrlc_init();
opdb_reset(); opdb_reset();
if (setup_driver(&args) < 0) if (setup_driver(&args) < 0)
@ -467,6 +466,7 @@ int main(int argc, char **argv)
} }
} }
} else { } else {
ctrlc_init();
reader_loop(); reader_loop();
} }