Fix : check if a child process is terminated

This commit is contained in:
Phillipe Pepiot 2008-11-23 23:59:42 +01:00
parent b8218dff33
commit a212be81af
3 changed files with 4 additions and 2 deletions

View File

@ -277,7 +277,7 @@ ishide(Client *c)
void void
client_kill(Client *c) client_kill(Client *c)
{ {
XEvent ev; XEvent ev;
Atom *atom = NULL; Atom *atom = NULL;
int proto; int proto;
Bool canbedel = 0; Bool canbedel = 0;

View File

@ -113,7 +113,7 @@ mainloop(void)
{ {
fd_set fd; fd_set fd;
char sbuf[sizeof infobar->statustext], *p; char sbuf[sizeof infobar->statustext], *p;
int len, r, offset = 0; int len, r, offset = 0, st;
Bool readstdin = True; Bool readstdin = True;
XEvent ev; XEvent ev;
@ -153,6 +153,7 @@ mainloop(void)
readstdin = False; readstdin = False;
} }
infobar_draw(); infobar_draw();
wait(&st);
} }
while(XPending(dpy)) while(XPending(dpy))
{ {

View File

@ -44,6 +44,7 @@
#include <time.h> #include <time.h>
#include <getopt.h> #include <getopt.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/wait.h>
#include <confuse.h> #include <confuse.h>
#include <X11/Xlib.h> #include <X11/Xlib.h>
#include <X11/Xatom.h> #include <X11/Xatom.h>