Str.strsignal

Returns a string describing the given signal, e.g. "Segmentation fault". You should use this function in preference to strsignal(), because it returns a string in UTF-8 encoding, and since not all platforms support the strsignal() function.

class Str
static
string
strsignal
(
int signum
)

Parameters

signum int

the signal number. See the signal documentation

Return Value

Type: string

a UTF-8 string describing the signal. If the signal is unknown, it returns "unknown signal (<signum>)". The string can only be used until the next call to g_strsignal()

Meta