]> git.sur5r.net Git - i3/i3/commitdiff
Move child_pid into child.c
authorAxel Wagner <mail@merovius.de>
Fri, 17 Sep 2010 01:03:43 +0000 (03:03 +0200)
committerAxel Wagner <mail@merovius.de>
Fri, 17 Sep 2010 01:03:43 +0000 (03:03 +0200)
i3bar/include/common.h
i3bar/src/child.c

index dcb0bac3024de37cb888dfdb2e89ceecc960c339..e885ddcd327f040171d059a1371988012e84be62 100644 (file)
@@ -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 {
index a4c33bcd311dbca91c61802bf8b8d2ef20878fee..1ed429c05914406a8e7a5577e082bc5d8f6a8966 100644 (file)
@@ -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;