xserver-multidpi/os
Keith Packard d5bf6f95f3 Fix FlushClient to write extraBuf when provided (regression fix)
In commit:

	commit 092c57ab17
	Author: Adam Jackson <ajax@redhat.com>
	Date:   Fri Jun 17 14:03:01 2011 -0400

	    os: Hide the Connection{In,Out}put implementation details

	    Reviewed-by: Daniel Stone <daniel@fooishbar.org>
	    Signed-off-by: Adam Jackson <ajax@redhat.com>

the check for an empty output buffer was moved from one calling
location into the FlushClient implementation itself. However, this
neglected the possibility that additional data, in the form of
'extraBuf' would be passed to FlushClient from other code paths. If the
output buffer happened to be empty at that time, the extra data would
never be written to the client.

This is fixed by checking the total data to be written, which includes
both pending and extra data, instead of just the pending data.

Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Julien Cristau <jcristau@debian.org>
2012-10-04 14:58:49 -07:00
..
.gitignore dix and os: gitignore dix.O and os.O 2011-09-23 17:14:47 -07:00
access.c dix: Pull client-is-local flag up to the ClientRec 2012-09-20 14:36:39 -04:00
auth.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
backtrace.c Print backtrace in a signal-safe manner 2012-07-02 22:34:32 -07:00
client.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
connection.c os: Hide the Connection{In,Out}put implementation details 2012-09-20 14:40:18 -04:00
io.c Fix FlushClient to write extraBuf when provided (regression fix) 2012-10-04 14:58:49 -07:00
log.c os: fix typo, fsync when WIN32 is _not_ defined 2012-08-23 14:48:18 +10:00
Makefile.am Move to autoconf standard function name checks & defines 2011-12-05 14:32:45 -08:00
mitauth.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
oscolor.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
osdep.h os: Hide the Connection{In,Out}put implementation details 2012-09-20 14:40:18 -04:00
osinit.c Reliably reset signals at server init time 2012-07-09 16:34:39 -07:00
rpcauth.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
strcasecmp.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
strcasestr.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
strlcat.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
strlcpy.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
strndup.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
utils.c Add FormatInt64 to convert signed integers in signal-safe manner 2012-08-21 07:54:07 +10:00
WaitFor.c os: make timers signal-safe 2012-05-01 11:36:35 +10:00
xdmauth.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xdmcp.c Change lastDeviceIdleTime to be per-device 2012-03-22 13:12:56 +10:00
xprintf.c os/xprintf: add Xvscnprintf and Xscnprintf 2012-05-03 14:59:23 +10:00
xsha1.c os: Add CryptoAPI as a choice of SHA1 implementation 2012-05-04 13:13:50 -05:00
xstrans.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00