From 0e4487e489ea173ae09cb31c6a48751d5287bf69 Mon Sep 17 00:00:00 2001 From: Axel Wagner Date: Fri, 17 Sep 2010 03:03:43 +0200 Subject: [PATCH] Move child_pid into child.c --- i3bar/include/common.h | 1 - i3bar/src/child.c | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) 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;