(dos_cleanup): Flush and fsync the termscript stream.

This commit is contained in:
Eli Zaretskii 1998-12-03 09:41:09 +00:00
parent b162a8c47a
commit 6f855d6452

View file

@ -469,6 +469,13 @@ dos_cleanup (void)
#ifndef HAVE_X_WINDOWS
restore_parent_vm_title ();
#endif
/* Make sure the termscript file is committed, in case we are
crashing and some vital info was written there. */
if (termscript)
{
fflush (termscript);
fsync (fileno (termscript));
}
}
/*