diff options
author | tedu <> | 2014-05-14 21:54:20 +0000 |
---|---|---|
committer | tedu <> | 2014-05-14 21:54:20 +0000 |
commit | 8b25899b4c04e7b25fb2318b51b6390f9d5474e8 (patch) | |
tree | 02ceb5d8eaaa1f26fbd3f43d2a51682a643ca073 /src/lib/libc/stdlib/abort.3 | |
parent | d80a509f5bc6ebb6406df372d83531863fa297e8 (diff) | |
download | openbsd-8b25899b4c04e7b25fb2318b51b6390f9d5474e8.tar.gz openbsd-8b25899b4c04e7b25fb2318b51b6390f9d5474e8.tar.bz2 openbsd-8b25899b4c04e7b25fb2318b51b6390f9d5474e8.zip |
stop flushing streams in abort(). it's hackish and unsafe, and no longer
required. try to document this fact and some of the history.
with feedback from deraadt guenther millert
Diffstat (limited to 'src/lib/libc/stdlib/abort.3')
-rw-r--r-- | src/lib/libc/stdlib/abort.3 | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/lib/libc/stdlib/abort.3 b/src/lib/libc/stdlib/abort.3 index 322d629930..2f15cd827c 100644 --- a/src/lib/libc/stdlib/abort.3 +++ b/src/lib/libc/stdlib/abort.3 | |||
@@ -29,9 +29,9 @@ | |||
29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
30 | .\" SUCH DAMAGE. | 30 | .\" SUCH DAMAGE. |
31 | .\" | 31 | .\" |
32 | .\" $OpenBSD: abort.3,v 1.10 2013/07/17 05:42:11 schwarze Exp $ | 32 | .\" $OpenBSD: abort.3,v 1.11 2014/05/14 21:54:20 tedu Exp $ |
33 | .\" | 33 | .\" |
34 | .Dd $Mdocdate: July 17 2013 $ | 34 | .Dd $Mdocdate: May 14 2014 $ |
35 | .Dt ABORT 3 | 35 | .Dt ABORT 3 |
36 | .Os | 36 | .Os |
37 | .Sh NAME | 37 | .Sh NAME |
@@ -48,7 +48,8 @@ function causes abnormal program termination to occur, unless the signal | |||
48 | .Dv SIGABRT | 48 | .Dv SIGABRT |
49 | is being caught and the signal handler does not return. | 49 | is being caught and the signal handler does not return. |
50 | .Pp | 50 | .Pp |
51 | Any open streams are flushed and closed. | 51 | Some implementations may flush output streams before terminating. |
52 | This implementation does not. | ||
52 | .Sh RETURN VALUES | 53 | .Sh RETURN VALUES |
53 | The | 54 | The |
54 | .Fn abort | 55 | .Fn abort |
@@ -66,3 +67,11 @@ The | |||
66 | .Fn abort | 67 | .Fn abort |
67 | function first appeared in | 68 | function first appeared in |
68 | .At v5 . | 69 | .At v5 . |
70 | .Pp | ||
71 | Historically, previous standards required | ||
72 | .Fn abort | ||
73 | to flush and close output streams, but this conflicted with the requirement | ||
74 | that | ||
75 | .Fn abort | ||
76 | be async signal safe. | ||
77 | As a result, the flushing requirement was dropped. | ||