abort
Description:
[ NoReturn ]
[ Version ( since = "2.50" ) ]
public void abort ()
[ Version ( since = "2.50" ) ]
public void abort ()
Causes abnormal program termination unless ABRT is being caught by a signal handler passed to signal and the handler does not return.
Functions, passed to atexit are not called. Whether open resources such as files are closed is implementation defined. Implementation defined status is returned to the host environment that indicates unsuccessful execution.
Example: Cause abnormal program termination (Abort):
public static void shutdown () {
Process.abort ();
}
public static int main (string[] args) {
// Output: ``Aborted``
shutdown ();
print ("You can't see ne!\n");
return 0;
}
valac --pkg glib-2.0 GLib.Process.abort.vala
Namespace: GLib.Process
Package: glib-2.0