Mercurial > emacs
comparison src/dosfns.c @ 23814:3229c65a13c5
(dos_cleanup): Flush and fsync the termscript stream.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Thu, 03 Dec 1998 09:41:09 +0000 |
parents | b6b154ad6e22 |
children | 73c54061f4bb |
comparison
equal
deleted
inserted
replaced
23813:198226daae3b | 23814:3229c65a13c5 |
---|---|
467 dos_cleanup (void) | 467 dos_cleanup (void) |
468 { | 468 { |
469 #ifndef HAVE_X_WINDOWS | 469 #ifndef HAVE_X_WINDOWS |
470 restore_parent_vm_title (); | 470 restore_parent_vm_title (); |
471 #endif | 471 #endif |
472 /* Make sure the termscript file is committed, in case we are | |
473 crashing and some vital info was written there. */ | |
474 if (termscript) | |
475 { | |
476 fflush (termscript); | |
477 fsync (fileno (termscript)); | |
478 } | |
472 } | 479 } |
473 | 480 |
474 /* | 481 /* |
475 * Define everything | 482 * Define everything |
476 */ | 483 */ |