aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/kismet/kismet-2008-05-R1/kismet-2008-05-R1-crash.diff
blob: 4c1d3a236008745c8bddd0c4bb8bcc96ac8ae09a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- kismet_wrapper.cc
+++ kismet_wrapper.cc
@@ -79,7 +79,7 @@ void reap(int sig) {
 		if (FD_ISSET(epipe[0], &rset)) {
 			if (fgets(ret, 2048, err) == NULL ||
 				feof(err)) {
-				if (feof(out))
+				if (!check_out || feof(out))
 					break;
 
 				fclose(err);
@@ -98,7 +98,7 @@ void reap(int sig) {
 		if (FD_ISSET(rpipe[0], &rset)) {
 			if (fgets(ret, 2048, out) == NULL ||
 				feof(out)) {
-				if (feof(err))
+				if (!check_err || feof(err))
 					break;
 
 				fclose(out);