MCPcopy Create free account
hub / github.com/3rdparty/libprocess / status

Method status

include/process/subprocess.hpp:289–289  ·  view source on GitHub ↗

* Exit status of this subprocess captured as a Future (completed * when the subprocess exits). * * On Posix, the exit status is propagated from an underlying call * to `waitpid` and can be used with macros defined in wait.h, i.e., * `WIFEXITED(status)`. * * On Windows, the exit status contains the exit code from an * underlying call to `GetExitCodeProcess()`. * * TODO

Source from the content-addressed store, hash-verified

287 * Note that `process::reap()` never fails or discards this future.
288 */
289 Future<Option<int>> status() const { return data->status; }
290
291private:
292 friend Try<Subprocess> subprocess(

Callers 6

reap_linkeeMethod · 0.80
TEST_FFunction · 0.80
run_subprocessFunction · 0.80
TEST_FFunction · 0.80
await_subprocessFunction · 0.80

Calls

no outgoing calls

Tested by 5

reap_linkeeMethod · 0.64
TEST_FFunction · 0.64
run_subprocessFunction · 0.64
TEST_FFunction · 0.64
await_subprocessFunction · 0.64