diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,4 +1,7 @@ +#include "config.h" + #include <stdio.h> +#include <unistd.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> @@ -7,7 +10,6 @@ #include <sys/wait.h> #include <fcntl.h> -#include "config.h" #include "opt.h" #include "log.h" @@ -16,6 +18,7 @@ #include "ui_ani.h" #include "ui_input.h" #include "ui_statusbar.h" +#include "ui_nask.h" #define MSG(msg_idx) msg_arr[msg_idx] @@ -167,7 +170,7 @@ main(int argc, char **argv) } usleep(100000); waitpid(child, &c_status, WNOHANG); - if ( WIFEXITED(&c_status) != 0 ) { + if ( WIFEXITED(c_status) != 0 ) { logs("%s\n", "child exited"); ui_ipc_semtrywait(SEM_UI); } |