[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
MiNT 1.10 biosfs select() patch
Ok, forget what I was telling some hours ago. The chunks came from the vcon
daemon from Juergen Lock. Without the vcons, it doesn't work at all!
Looks like you can still read characters from /dev/console, but select
doesn't work any longer. When tracking this down, I found this:
diff -u3 orig/biosfs.c ./biosfs.c
--- orig/biosfs.c Thu Feb 17 16:55:00 1994
+++ ./biosfs.c Thu Feb 17 23:04:10 1994
@@ -1542,7 +1542,7 @@
}
if (tty) {
/* avoid collisions with other processes */
- if (!tty->rsel)
+ if (tty->rsel)
return 2; /* collision */
tty->rsel = p;
}
@@ -1553,7 +1553,7 @@
return 1;
}
if (tty) {
- if (!tty->wsel)
+ if (tty->wsel)
return 2; /* collision */
tty->wsel = p;
}
Since the selecting process is initialized to zero, a collision was always
reported and the calling process wasn't set to be selecting it. Therefore it
wouldn't be waken up when a key was pressed.
Now it's a bit better... :-)
TeSche,
Torsten Scherer, itschere@techfak.uni-bielefeld.de