Fix : check if a child process is terminated
This commit is contained in:
parent
b8218dff33
commit
a212be81af
@ -277,7 +277,7 @@ ishide(Client *c)
|
||||
void
|
||||
client_kill(Client *c)
|
||||
{
|
||||
XEvent ev;
|
||||
XEvent ev;
|
||||
Atom *atom = NULL;
|
||||
int proto;
|
||||
Bool canbedel = 0;
|
||||
|
||||
@ -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))
|
||||
{
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user