Commit 6f855d64 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

(dos_cleanup): Flush and fsync the termscript stream.

parent b162a8c4
......@@ -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));
}
}
/*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment