Commit 34f6d836 authored by Mike Hibler's avatar Mike Hibler

Arrrggghhhh!!!

Set non-blocking write the correct way this time!
parent 64641de9
...@@ -309,11 +309,10 @@ capture() ...@@ -309,11 +309,10 @@ capture()
* I keep thinking (use threads) that there is a better way to do * I keep thinking (use threads) that there is a better way to do
* this (use threads). Hmm... * this (use threads). Hmm...
*/ */
n = FNDELAY; if (fcntl(ptyfd, F_SETFL, O_NONBLOCK) < 0)
if (fcntl(ptyfd, F_SETFL, &n) < 0) die("fcntl(O_NONBLOCK): %s", Ptyname, geterr(errno));
die("fcntl(FNDELAY): %s", Ptyname, geterr(errno)); if (fcntl(devfd, F_SETFL, O_NONBLOCK) < 0)
if (fcntl(devfd, F_SETFL, &n) < 0) die("fcntl(O_NONBLOCK): %s", Devname, geterr(errno));
die("fcntl(FNDELAY): %s", Devname, geterr(errno));
n = devfd; n = devfd;
if (devfd < ptyfd) if (devfd < ptyfd)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment