Apply kbdrate_notty.diff patch from Debian distribution.
kbdrate must not fail when not connected to a TTY.
See bug #212770, bugreport and patch provided by Frederic Gaus.
Date: 2004-07-25
Signed-off-by: Alexey Gladkov <legion@altlinux.org>
kbdrep_s.period = -1;
kbdrep_s.delay = -1;
if (ioctl( 0, KDKBDREP, &kbdrep_s )) {
- if (errno == EINVAL)
+ if (errno == EINVAL || errno == ENOTTY)
return 0;
perror( "ioctl(KDKBDREP)" );
exit( 1 );