Subprocess.wait
bool wait(gio.cancellable.Cancellable cancellable = null)Synchronously wait for the subprocess to terminate.
After the process terminates you can query its exit status with functions such as [gio.subprocess.Subprocess.getIfExited] and [gio.subprocess.Subprocess.getExitStatus].
This function does not fail in the case of the subprocess having abnormal termination. See [gio.subprocess.Subprocess.waitCheck] for that.
Cancelling cancellable doesn't kill the subprocess. Call [gio.subprocess.Subprocess.forceExit] if it is desirable.
Parameters
cancellable | a #GCancellable |
Returns
true on success, false if cancellable was cancelled
Throws
[ErrorWrap]