On Fri, Jun 08, 2012 at 09:58:00PM +0200, Sven Joachim wrote: > Do you also redirect stdin? Otherwise it's hard to get a non-zero
no - just stdout/stderr On the other hand, rpm and dpkg build tools can redirect things as well. > result from poll(): you have to manage pressing the return key during > the 100 milliseconds the test takes, it seems. The exit code is inverted: it is true if nonzero, which could be -1 or some number greater than zero (the latter would indicate some input happening, though which of the cases is hard to tell). The ret==0 that was noted before would make the test succeed. I've modified the test to fix the two issues that I could see, and made rpm/dpkg scripts which did fail, but now work with the changed test. -- Thomas E. Dickey <dic...@invisible-island.net> http://invisible-island.net ftp://invisible-island.net
signature.asc
Description: Digital signature