abort Subroutine

Purpose

Sends a SIGIOT signal to end the current process.

Library

Standard C Library (libc.a)

Syntax

#include <stdlib.h>
int abort (void)

Description

The abort subroutine sends a SIGIOT signal to the current process to terminate the process and produce a memory dump. If the signal is caught and the signal handler does not return, the abort subroutine does not produce a memory dump.

If the SIGIOT signal is neither caught nor ignored, and if the current directory is writable, the system produces a memory dump in the core file in the current directory and prints an error message.

The abnormal-termination processing includes the effect of the fclose subroutine on all open streams and message-catalog descriptors, and the default actions defined as the SIGIOT signal. The SIGIOT signal is sent in the same manner as that sent by the raise subroutine with the argument SIGIOT.

The status made available to the wait or waitpid subroutine by the abort subroutine is the same as a process terminated by the SIGIOT signal. The abort subroutine overrides blocking or ignoring the SIGIOT signal.

Note: The SIGABRT signal is the same as the SIGIOT signal.

Return Values

The abort subroutine does not return a value.