summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-10-07 23:40:39 +0000
committerEric Andersen <andersen@codepoet.org>2000-10-07 23:40:39 +0000
commit59030d6f8ae481f69966aa9e1062af461b50e1b0 (patch)
tree082fbedb8dd637323675850538436875276e3ca0
parentfbb4007ac88656122f9319dea4563a3a4fd40e82 (diff)
Formatting update
-rw-r--r--libc/stdlib/abort.c36
1 files changed, 17 insertions, 19 deletions
diff --git a/libc/stdlib/abort.c b/libc/stdlib/abort.c
index 3c0c3c0eb..11448bfb9 100644
--- a/libc/stdlib/abort.c
+++ b/libc/stdlib/abort.c
@@ -27,26 +27,24 @@ Cambridge, MA 02139, USA. */
typedef void (*vfuncp) ();
extern vfuncp __cleanup;
-extern void _exit __P ((int __status)) __attribute__ ((__noreturn__));
+extern void _exit __P((int __status)) __attribute__ ((__noreturn__));
/* Cause an abnormal program termination with core-dump. */
-void
-abort(void)
+void abort(void)
{
- sigset_t sigset;
-
- if (sigemptyset(&sigset) == 0 &&
- sigaddset(&sigset, SIGABRT) == 0) {
- sigprocmask(SIG_UNBLOCK, &sigset, (sigset_t *) NULL);
- }
-
- if (__cleanup)
- __cleanup();
-
- while (1)
- if (raise(SIGABRT))
- /* If we can't signal ourselves, exit. */
- _exit(127);
- /* If we signal ourselves and are still alive,
- or can't exit, loop forever. */
+ sigset_t sigset;
+
+ if (sigemptyset(&sigset) == 0 && sigaddset(&sigset, SIGABRT) == 0) {
+ sigprocmask(SIG_UNBLOCK, &sigset, (sigset_t *) NULL);
+ }
+
+ if (__cleanup)
+ __cleanup();
+
+ while (1)
+ if (raise(SIGABRT))
+ /* If we can't signal ourselves, exit. */
+ _exit(127);
+ /* If we signal ourselves and are still alive,
+ or can't exit, loop forever. */
}