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
|
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;
|
||||||
|
|||||||
@ -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))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user