All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

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()
* I keep thinking (use threads) that there is a better way to do
* this (use threads). Hmm...
*/
n = FNDELAY;
if (fcntl(ptyfd, F_SETFL, &n) < 0)
die("fcntl(FNDELAY): %s", Ptyname, geterr(errno));
if (fcntl(devfd, F_SETFL, &n) < 0)
die("fcntl(FNDELAY): %s", Devname, geterr(errno));
if (fcntl(ptyfd, F_SETFL, O_NONBLOCK) < 0)
die("fcntl(O_NONBLOCK): %s", Ptyname, geterr(errno));
if (fcntl(devfd, F_SETFL, O_NONBLOCK) < 0)
die("fcntl(O_NONBLOCK): %s", Devname, geterr(errno));
n = devfd;
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