Just call fflush() from _cleanup(), since it does the right locking.

This commit is contained in:
mycroft 2000-01-21 19:55:02 +00:00
parent f9b319ca18
commit b714bb5102
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: findfp.c,v 1.12 1998/11/15 17:19:53 christos Exp $ */
/* $NetBSD: findfp.c,v 1.13 2000/01/21 19:55:02 mycroft Exp $ */
/*-
* Copyright (c) 1990, 1993
@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)findfp.c 8.2 (Berkeley) 1/4/94";
#else
__RCSID("$NetBSD: findfp.c,v 1.12 1998/11/15 17:19:53 christos Exp $");
__RCSID("$NetBSD: findfp.c,v 1.13 2000/01/21 19:55:02 mycroft Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@ -171,7 +171,7 @@ void
_cleanup()
{
/* (void) _fwalk(fclose); */
(void) _fwalk(__sflush); /* `cheating' */
(void) fflush(NULL); /* `cheating' */
}
/*