1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-05 19:31:02 -08:00

Guard the calls to mps_io_flush so that it can only be called after mps_io_create.

Copied from Perforce
 Change: 182322
 ServerID: perforce.ravenbrook.com
This commit is contained in:
Gareth Rees 2013-05-30 15:24:41 +01:00
parent 651bf2ceee
commit dad0cabdf7

View file

@ -1,7 +1,7 @@
/* event.c: EVENT LOGGING
*
* $Id$
* Copyright (c) 2001 Ravenbrook Limited. See end of file for license.
* Copyright (c) 2001-2013 Ravenbrook Limited. See end of file for license.
*
* .sources: mps.design.event
*
@ -142,11 +142,12 @@ void EventSync(void)
}
}
/* If we wrote out events, send an EventClockSync event */
if (wrote)
/* If we wrote out events, send an EventClockSync event and flush
the telemetry stream. */
if (wrote) {
(void)eventClockSync();
(void)mps_io_flush(eventIO);
(void)mps_io_flush(eventIO);
}
}
@ -515,7 +516,7 @@ extern void EventDump(mps_lib_FILE *stream)
/* C. COPYRIGHT AND LICENSE
*
* Copyright (C) 2001-2002 Ravenbrook Limited <http://www.ravenbrook.com/>.
* Copyright (C) 2001-2013 Ravenbrook Limited <http://www.ravenbrook.com/>.
* All rights reserved. This is an open source license. Contact
* Ravenbrook for commercial licensing options.
*