diff options
author | Thomas Osterried <thomas@osterried.de> | 2008-10-01 14:05:32 +0000 |
---|---|---|
committer | Thomas Osterried <thomas@osterried.de> | 2008-10-01 14:05:32 +0000 |
commit | 5b09226ce08f0ae073721a053e91e387be47752f (patch) | |
tree | 25b4e8987892628a3d621848a86fc1bb459f2411 | |
parent | 7ab8e1e5d2470b8c914ae8f526f4185db5d88222 (diff) |
forked child now closes stdin, stdout, stderr.
Now it does not block on
PTY=$(./kissattach /dev/ptmx ax4 2>&1|tail -1)
-rw-r--r-- | kiss/kissattach.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kiss/kissattach.c b/kiss/kissattach.c index d4bfd26..f4efb9a 100644 --- a/kiss/kissattach.c +++ b/kiss/kissattach.c @@ -385,6 +385,10 @@ int main(int argc, char *argv[]) return 1; } + close(0); + close(1); + close(2); + while (1) sleep(10000); |