aboutsummaryrefslogtreecommitdiff
path: root/xwinwrap.c
diff options
context:
space:
mode:
Diffstat (limited to 'xwinwrap.c')
-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++)