(dos_cleanup): Flush and fsync the termscript stream.
This commit is contained in:
parent
b162a8c47a
commit
6f855d6452
1 changed files with 7 additions and 0 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue