wait

open fun wait(cancellable: Cancellable? = null): <Error class: unknown class><Boolean>

Synchronously wait for the subprocess to terminate.

After the process terminates you can query its exit status with functions such as g_subprocess_get_if_exited() and g_subprocess_get_exit_status().

This function does not fail in the case of the subprocess having abnormal termination. See g_subprocess_wait_check() for that.

Cancelling @cancellable doesn't kill the subprocess. Call g_subprocess_force_exit() if it is desirable.

Return

true on success, false if @cancellable was cancelled

Since

2.40

Parameters

cancellable

a #GCancellable