fixes the ioctl routine to not chew up massive amounts of kernel time

if an invalid ioctl is done on /dev/klog.  logioctl() needs to return
an errno instead of -1 on a failed ioctl.
Submitted by:	Mike Pritchard <mpp@mpp.com>
This commit is contained in:
Jordan K. Hubbard 1995-04-29 05:09:19 +00:00
parent a907b94117
commit 65b36cbb7d

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)subr_log.c 8.1 (Berkeley) 6/10/93
* $Id: subr_log.c,v 1.4 1994/09/25 19:33:47 phk Exp $
* $Id: subr_log.c,v 1.5 1994/10/02 17:35:22 phk Exp $
*/
/*
@ -234,7 +234,7 @@ logioctl(dev, com, data, flag, p)
break;
default:
return (-1);
return (EINVAL);
}
return (0);
}