From 5bd904102052d9a104f2bb115014f943823026ac Mon Sep 17 00:00:00 2001 From: chmr Date: Tue, 23 Nov 1993 18:20:52 +0000 Subject: Changed return(-1) in switch_scr to return(EINVAL), because -1 is ERESTART on return from a system call. --- sys/dev/syscons/syscons.c | 4 ++-- sys/i386/isa/syscons.c | 4 ++-- sys/isa/syscons.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'sys') diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c index 4e56cfc..fa07917 100644 --- a/sys/dev/syscons/syscons.c +++ b/sys/dev/syscons/syscons.c @@ -35,7 +35,7 @@ * * from: @(#)pccons.c 5.11 (Berkeley) 5/21/91 * from: @(#)syscons.c 1.1 931021 - * $Id: syscons.c,v 1.17 1993/10/31 00:09:02 jkh Exp $ + * $Id: syscons.c,v 1.18 1993/10/31 00:19:01 jkh Exp $ * * Heavily modified by Søren Schmidt (sos@login.dkuug.dk) to provide: * @@ -1303,7 +1303,7 @@ static switch_scr(u_int next_scr) switch_in_progress = 0; if (next_scr >= NCONS || switch_in_progress) { sysbeep(BELL_PITCH, BELL_DURATION); - return -1; + return EINVAL; } switch_in_progress = 1; old_scp = cur_console; diff --git a/sys/i386/isa/syscons.c b/sys/i386/isa/syscons.c index 4e56cfc..fa07917 100644 --- a/sys/i386/isa/syscons.c +++ b/sys/i386/isa/syscons.c @@ -35,7 +35,7 @@ * * from: @(#)pccons.c 5.11 (Berkeley) 5/21/91 * from: @(#)syscons.c 1.1 931021 - * $Id: syscons.c,v 1.17 1993/10/31 00:09:02 jkh Exp $ + * $Id: syscons.c,v 1.18 1993/10/31 00:19:01 jkh Exp $ * * Heavily modified by Søren Schmidt (sos@login.dkuug.dk) to provide: * @@ -1303,7 +1303,7 @@ static switch_scr(u_int next_scr) switch_in_progress = 0; if (next_scr >= NCONS || switch_in_progress) { sysbeep(BELL_PITCH, BELL_DURATION); - return -1; + return EINVAL; } switch_in_progress = 1; old_scp = cur_console; diff --git a/sys/isa/syscons.c b/sys/isa/syscons.c index 4e56cfc..fa07917 100644 --- a/sys/isa/syscons.c +++ b/sys/isa/syscons.c @@ -35,7 +35,7 @@ * * from: @(#)pccons.c 5.11 (Berkeley) 5/21/91 * from: @(#)syscons.c 1.1 931021 - * $Id: syscons.c,v 1.17 1993/10/31 00:09:02 jkh Exp $ + * $Id: syscons.c,v 1.18 1993/10/31 00:19:01 jkh Exp $ * * Heavily modified by Søren Schmidt (sos@login.dkuug.dk) to provide: * @@ -1303,7 +1303,7 @@ static switch_scr(u_int next_scr) switch_in_progress = 0; if (next_scr >= NCONS || switch_in_progress) { sysbeep(BELL_PITCH, BELL_DURATION); - return -1; + return EINVAL; } switch_in_progress = 1; old_scp = cur_console; -- cgit v1.1