about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/main.c b/main.c
index 545efe9..50fb9d7 100644
--- a/main.c
+++ b/main.c
@@ -18,11 +18,12 @@
 /* static */
 
 static int (*xerrorxlib)(Display *, XErrorEvent *);
-static Bool otherwm;
+static Bool otherwm, readin;
 
 static void
 cleanup()
 {
+	close(STDIN_FILENO);
 	while(sel) {
 		resize(sel, True, TopLeft);
 		unmanage(sel);
@@ -146,7 +147,7 @@ sendevent(Window w, Atom a, long value)
 void
 quit(Arg *arg)
 {
-	running = False;
+	readin = running = False;
 }
 
 /*
@@ -176,7 +177,6 @@ main(int argc, char *argv[])
 	int i, j, xfd;
 	unsigned int mask;
 	fd_set rd;
-	Bool readin = True;
 	Window w;
 	XModifierKeymap *modmap;
 	XSetWindowAttributes wa;
@@ -279,6 +279,7 @@ main(int argc, char *argv[])
 	/* main event loop, also reads status text from stdin */
 	XSync(dpy, False);
 	procevent();
+	readin = True;
 	while(running) {
 		FD_ZERO(&rd);
 		if(readin)
16:32:29 +0800 bootstrap the compiler with nimPreviewSlimSystem (#20176)' href='/ahoang/Nim/commit/compiler/nim.cfg?h=devel&id=e8ae2dc90ba62466b3aba212df133f7ad564cbab'>e8ae2dc90 ^
27a38a9fc ^
20446b437 ^
f89ba2c95 ^
1737bb9f9 ^
c323ec015 ^
fb80d2ff8 ^
07a986afa ^
9035d15ed ^


73c6efdf6 ^
4dae4fafe ^

df53c68a3 ^


e06046ab5 ^
aa1d7fe1e ^
cf7e83ecc ^
0032912d1 ^
da29222f8 ^

ef2998778 ^
da29222f8 ^
e0ef85913 ^
93b59da49 ^
e290b028a ^
ef2998778 ^




e290b028a ^
91ce8c385 ^



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45