Andrew Bettison 7f0fef2209 Fix an intermittent server test failure
The quit-on-monitor-client-disconnect test was non-deterministic
depending on load (eg, other concurrently running tests).  Under load,
it was likely that the server did not process the "monitor quit" command
before checking for disconnect, so the server did not terminate.

The fix was to make the monitor interface read and process all queued
input from the client before checking for HUP or ERR condition on the
socket.  With this fix, the "sleep 1" kludges before and after the echo
"monitor quit" to the console command are no longer needed.

In the process the monitor interface code was modernised: eg, now it
calls read_nonblock() instead of read(2).
2016-09-06 12:33:29 +09:30
..
all
2016-08-16 15:04:15 +09:30
2015-12-14 10:31:38 +10:30
mdp
2014-05-05 14:45:33 +09:30
2016-08-29 11:06:53 +09:30
msp
2016-02-15 18:41:54 +10:30
2015-12-01 00:51:15 +10:30
2016-09-06 12:33:29 +09:30