mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Fix for the problem that moused hangs if it is started from /etc/rc
Introduces the /dev/consolectl device for controlling various console related things (given syscons is used).
This commit is contained in:
parent
b6b34a5e0f
commit
a41cbc45be
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=18190
3 changed files with 12 additions and 8 deletions
|
@ -101,7 +101,7 @@
|
|||
# labpc* National Instrument's Lab-PC and LAB-PC+
|
||||
# perfmon CPU performance-monitoring counters
|
||||
#
|
||||
# $Id: MAKEDEV,v 1.121 1996/09/08 23:56:27 ache Exp $
|
||||
# $Id: MAKEDEV,v 1.122 1996/09/09 00:02:44 ache Exp $
|
||||
#
|
||||
|
||||
PATH=/sbin:/bin/:/usr/bin:/usr/sbin:
|
||||
|
@ -1063,9 +1063,11 @@ tun?)
|
|||
;;
|
||||
|
||||
sysmouse)
|
||||
rm -f sysmouse
|
||||
rm -f sysmouse consolectl
|
||||
mknod sysmouse c 12 128
|
||||
chown root.wheel sysmouse
|
||||
mknod consolectl c 12 255
|
||||
chown root.wheel sysmouse consolectl
|
||||
chmod 600 sysmouse consolectl
|
||||
;;
|
||||
|
||||
snp?)
|
||||
|
|
|
@ -101,7 +101,7 @@
|
|||
# labpc* National Instrument's Lab-PC and LAB-PC+
|
||||
# perfmon CPU performance-monitoring counters
|
||||
#
|
||||
# $Id: MAKEDEV,v 1.121 1996/09/08 23:56:27 ache Exp $
|
||||
# $Id: MAKEDEV,v 1.122 1996/09/09 00:02:44 ache Exp $
|
||||
#
|
||||
|
||||
PATH=/sbin:/bin/:/usr/bin:/usr/sbin:
|
||||
|
@ -1063,9 +1063,11 @@ tun?)
|
|||
;;
|
||||
|
||||
sysmouse)
|
||||
rm -f sysmouse
|
||||
rm -f sysmouse consolectl
|
||||
mknod sysmouse c 12 128
|
||||
chown root.wheel sysmouse
|
||||
mknod consolectl c 12 255
|
||||
chown root.wheel sysmouse consolectl
|
||||
chmod 600 sysmouse consolectl
|
||||
;;
|
||||
|
||||
snp?)
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
** EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
**
|
||||
**
|
||||
** $Id: moused.c,v 1.1 1996/06/21 09:24:09 sos Exp $
|
||||
** $Id: moused.c,v 1.2 1996/06/25 08:54:57 sos Exp $
|
||||
**/
|
||||
|
||||
/**
|
||||
|
@ -223,7 +223,7 @@ main(int argc, char *argv[])
|
|||
}
|
||||
r_init(); /* call init function */
|
||||
|
||||
if ((cfd = open("/dev/console", O_RDWR, 0)) == -1)
|
||||
if ((cfd = open("/dev/consolectl", O_RDWR, 0)) == -1)
|
||||
fprintf(stderr, "error on /dev/console\n");
|
||||
|
||||
if (!nodaemon)
|
||||
|
|
Loading…
Reference in a new issue