public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efab961
)
abort: note buglet
author
Alan Cox
<alan@etchedpixels.co.uk>
Wed, 21 Oct 2015 20:47:37 +0000
(21:47 +0100)
committer
Alan Cox
<alan@etchedpixels.co.uk>
Wed, 21 Oct 2015 20:47:37 +0000
(21:47 +0100)
Library/libs/abort.c
patch
|
blob
|
history
diff --git
a/Library/libs/abort.c
b/Library/libs/abort.c
index
61d9244
..
722e5c8
100644
(file)
--- a/
Library/libs/abort.c
+++ b/
Library/libs/abort.c
@@
-1,10
+1,11
@@
-/*
\r
- */
\r
-#include <unistd.h>
\r
-#include <stdlib.h>
\r
-#include <signal.h>
\r
-#include <syscalls.h>
\r
-
\r
+/*
+ * FIXME: should do an fflushall IFF stdio is in use
+ */
+#include <unistd.h>
+#include <stdlib.h>
+#include <signal.h>
+#include <syscalls.h>
+
void abort(void)
{
signal(SIGABRT, SIG_DFL);
@@
-13,4
+14,4
@@
void abort(void)
signal(SIGKILL, SIG_DFL);
kill(SIGKILL, getpid()); /* Can't trap this! */
_exit(255); /* WHAT!! */
-}
\r
+}