spawnCheckExitStatus

fnbool spawnCheckExitStatus(int waitStatus)

An old name for [glib.global.spawnCheckWaitStatus], deprecated because its name is misleading.

Despite the name of the function, wait_status must be the wait status as returned by [glib.global.spawnSync], [gio.subprocess.Subprocess.getStatus], waitpid(), etc. On Unix platforms, it is incorrect for it to be the exit status as passed to exit() or returned by [gio.subprocess.Subprocess.getExitStatus] or WEXITSTATUS().

Parameters

waitStatusA status as returned from [glib.global.spawnSync]

Returns

true if child exited successfully, false otherwise (and

error will be set)

Throws

[ErrorWrap]

Deprecated

Use [glib.global.spawnCheckWaitStatus] instead, and check whether your code is conflating wait and exit statuses.