abort: note buglet
authorAlan Cox <alan@etchedpixels.co.uk>
Wed, 21 Oct 2015 20:47:37 +0000 (21:47 +0100)
committerAlan Cox <alan@etchedpixels.co.uk>
Wed, 21 Oct 2015 20:47:37 +0000 (21:47 +0100)
Library/libs/abort.c

index 61d9244..722e5c8 100644 (file)
@@ -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
+}