]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
A lack of console input is not the same thing as a byte of \0 input.
authorColin Percival <cperciva@FreeBSD.org>
Wed, 29 Dec 2010 05:13:21 +0000 (05:13 +0000)
committerColin Percival <cperciva@FreeBSD.org>
Wed, 29 Dec 2010 05:13:21 +0000 (05:13 +0000)
commiteb68ccd676774c4be94deb11b56ced0889f15ea6
treec2d336ad5a469f8d0c561c2e36311ff4e7edcd07
parentbd2fa726e0b6ef09e52a71251be5978a04637411
A lack of console input is not the same thing as a byte of \0 input.
Correctly return -1 from cngetc when no input is available to be read.

This fixes the '(CTRL-C to abort)' spam while dumping.

MFC after: 3 days
sys/dev/xen/console/console.c