13 lines
400 B
Plaintext
13 lines
400 B
Plaintext
|
$OpenBSD: patch-src_ptt_c,v 1.1.1.1 2007/05/28 18:47:06 jason Exp $
|
||
|
--- src/ptt.c.orig Sat Nov 5 13:56:29 2005
|
||
|
+++ src/ptt.c Sat Nov 5 13:57:28 2005
|
||
|
@@ -142,7 +142,7 @@ static gint openptt(void)
|
||
|
guchar pararg;
|
||
|
#endif
|
||
|
|
||
|
- if ((fd = open(pttpath, O_RDWR, 0)) < 0) {
|
||
|
+ if ((fd = open(pttpath, O_RDWR | O_NONBLOCK, 0)) < 0) {
|
||
|
errmsg("Cannot open PTT device '%s': %m", pttpath);
|
||
|
return -1;
|
||
|
}
|