Contents

signal(_:)

Creates a condition that matches when a process exits with a given signal.

Declaration

static func signal(_ signal: CInt) -> ExitTest.Condition

Parameters

  • signal:

    The signal that caused the process to exit.

Mentioned in

Discussion

The C programming language defines a number of standard signals. Platforms may additionally define their own non-standard signal codes:

Platform

Header

macOS

Signal.3

Linux

Signal.7

FreeBSD

Man.cgi?signal(3)

OpenBSD

Signal

Windows

Signal Constants

See Also

Failing exit conditions