* libusplash.c, usplash_timeout_get_string(): Fix wrong and confusing
indentation.
* usplash.c: Fix argument parsing for INPUTTIMEOUT (off-by-one error, and
wrong string length).
* libusplash.c, usplash_timeout_get_string(): If no char was entered during
timeout, return an empty string instead of poking a 0 into random memory
and returning a random string.
* libusplash.c, handle_timeout_input(): Always output the string to the
output FIFO, even if input timed out and the string is empty. Otherwise
the usplash client cannot know whether it should starve and die waiting
for the reading FIFO or not listen to it and let usplash starve and die
for writing the FIFO.
* libusplash.c: Interpret INPUTTIMEOUT value as deciseconds instead of
seconds. This makes it much more useful for polling for input while doing
something in the background.
* usplash_write.8: Add documentation for INPUTTIMEOUT.
* libusplash.c, usplash_timeout_get_string(): Handle backspace properly.
(LP: #163793)
-- Martin Pitt <email address hidden> Mon, 11 Feb 2008 18:06:37 +0100
This bug was fixed in the package usplash - 0.5.11
---------------
usplash (0.5.11) hardy; urgency=low
* libusplash.c, usplash_ timeout_ get_string( ): Fix wrong and confusing timeout_ get_string( ): If no char was entered during timeout_ input() : Always output the string to the timeout_ get_string( ): Handle backspace properly.
indentation.
* usplash.c: Fix argument parsing for INPUTTIMEOUT (off-by-one error, and
wrong string length).
* libusplash.c, usplash_
timeout, return an empty string instead of poking a 0 into random memory
and returning a random string.
* libusplash.c, handle_
output FIFO, even if input timed out and the string is empty. Otherwise
the usplash client cannot know whether it should starve and die waiting
for the reading FIFO or not listen to it and let usplash starve and die
for writing the FIFO.
* libusplash.c: Interpret INPUTTIMEOUT value as deciseconds instead of
seconds. This makes it much more useful for polling for input while doing
something in the background.
* usplash_write.8: Add documentation for INPUTTIMEOUT.
* libusplash.c, usplash_
(LP: #163793)
-- Martin Pitt <email address hidden> Mon, 11 Feb 2008 18:06:37 +0100