From: Axel Wagner Date: Fri, 17 Sep 2010 01:03:43 +0000 (+0200) Subject: Move child_pid into child.c X-Git-Tag: 4.0.1~7^2~62 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0e4487e489ea173ae09cb31c6a48751d5287bf69;p=i3%2Fi3 Move child_pid into child.c --- 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;