diff --git a/main.c b/main.c index 4a23110..d93b869 100644 --- a/main.c +++ b/main.c @@ -176,8 +176,6 @@ print_pid(const char *pid_file, bool *unlink_at_exit) int main(int argc, char *const *argv) { - setlocale(LC_ALL, ""); - static const struct option longopts[] = { {"backend", required_argument, 0, 'b'}, {"config", required_argument, 0, 'c'}, @@ -321,6 +319,8 @@ main(int argc, char *const *argv) return 0; } + setlocale(LC_ALL, ""); + bar->abort_fd = abort_fd; thrd_t bar_thread;