diff --git a/i3bar/include/common.h b/i3bar/include/common.h index dcb0bac3..e885ddcd 100644 --- a/i3bar/include/common.h +++ b/i3bar/include/common.h @@ -13,7 +13,6 @@ typedef struct rect_t rect; typedef int bool; struct ev_loop* main_loop; -pid_t child_pid; char *statusline; struct rect_t { diff --git a/i3bar/src/child.c b/i3bar/src/child.c index a4c33bcd..1ed429c0 100644 --- a/i3bar/src/child.c +++ b/i3bar/src/child.c @@ -20,6 +20,9 @@ #include "common.h" +/* Global variables for child_*() */ +pid_t child_pid; + /* stdin- and sigchild-watchers */ ev_io *stdin_io; ev_child *child_sig;