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
client_kill(Client *c)
{
XEvent ev;
XEvent ev;
Atom *atom = NULL;
int proto;
Bool canbedel = 0;

View File

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

View File

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