+2004-03-22 Dave Brolley <brolley@redhat.com>
+
+ * socketio.cxx (fini_handler): Flush out remaining data before
+ terminating.
+
2003-07-14 Dave Brolley <brolley@redhat.com>
* stdio.cxx (read): Restore flags to their original state.
// socketio.cxx - A console that uses a socket to do its I/O.
// -*- C++ -*-
-// Copyright (C) 1999, 2000, 2002 Red Hat.
+// Copyright (C) 1999-2002, 2004 Red Hat.
// This file is part of SID and is licensed under the GPL.
// See the file COPYING.SID for conditions for redistribution.
{
this->poll_control.cancel ();
+ // Flush out any remaining data
+ while (this->connected_p && this->out_buffer.length() != 0)
+ this->poll_transmit ();
+
if (this->connected_p)
{
assert (this->fd >= 0);