diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-03-09 06:36:31 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-03-09 06:36:31 +0000 |
commit | 2ec183ea175e16ac9eafa5c7c0969ddfa719d2d3 (patch) | |
tree | 385d7db0dc1a945b4c6b1dc06b7597f9041daa84 | |
parent | b5b8fce4c829e2a0db887cceea7a42f3ce2c0d9d (diff) |
POSIX behaviour of abort; mckay
-rw-r--r-- | lib/libc/stdio/stdio.3 | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/libc/stdio/stdio.3 b/lib/libc/stdio/stdio.3 index 4b7b79cc435..9c111d106dd 100644 --- a/lib/libc/stdio/stdio.3 +++ b/lib/libc/stdio/stdio.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: stdio.3,v 1.4 1998/03/09 06:09:08 deraadt Exp $ +.\" $OpenBSD: stdio.3,v 1.5 1998/03/09 06:36:30 deraadt Exp $ .\" .\" Copyright (c) 1990, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -90,9 +90,13 @@ the .Xr exit 3 function is called, all open files are closed (hence all output streams are flushed) before program termination. Other methods -of program termination, such as +of program termination may not close files properly and hence +buffered output may be lost. In particular, +.Xr _exit 2 +does not flush stdio files. Neither does an exit due to a signal. +Buffers are flushed by .Xr abort 3 -do not bother about closing files properly. +as required by POSIX, although previous implementations did not. .Pp This implementation needs and makes no distinction between |