aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaahh Ahh <woohoomoo2u@gmail.com>2017-12-27 20:13:25 -0500
committerAaahh Ahh <woohoomoo2u@gmail.com>2017-12-27 20:13:25 -0500
commit880ec2e4eef6a086838b860fbcfdd9a0a63e3dc0 (patch)
treedf9321d8e7ef98301b41229f473edb857f5c49cd
parent44d30d1293d38007b42b8884a695b3af3a4de639 (diff)
more debug logs
-rw-r--r--xwinwrap.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/xwinwrap.c b/xwinwrap.c
index dd70d8a..1f88491 100644
--- a/xwinwrap.c
+++ b/xwinwrap.c
@@ -469,9 +469,11 @@ int main(int argc, char **argv)
}
chdir("/");
- close(STDIN_FILENO);
- close(STDOUT_FILENO);
- close(STDERR_FILENO);
+ if (!debug) {
+ close(STDIN_FILENO);
+ close(STDOUT_FILENO);
+ close(STDERR_FILENO);
+ }
}
for (i = i + 1; i < argc; i++)