linol/lwt/Lwt_process/class-process_none/index.html
2025-08-24 01:27:17 +00:00

2 lines
3.5 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>process_none (lwt.Lwt_process.process_none)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 3.1.0"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> <a href="../../../index.html">Index</a> &#x00BB; <a href="../../index.html">lwt</a> &#x00BB; <a href="../index.html">Lwt_process</a> &#x00BB; process_none</nav><header class="odoc-preamble"><h1>Class <code><span>Lwt_process.process_none</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec method anchored" id="method-pid"><a href="#method-pid" class="anchor"></a><code><span><span class="keyword">method</span> pid : int</span></code></div><div class="spec-doc"><p>Pid of the sub-process</p></div></div><div class="odoc-spec"><div class="spec method anchored" id="method-state"><a href="#method-state" class="anchor"></a><code><span><span class="keyword">method</span> state : <a href="../index.html#type-state">state</a></span></code></div><div class="spec-doc"><p>Return the state of the process</p></div></div><div class="odoc-spec"><div class="spec method anchored" id="method-kill"><a href="#method-kill" class="anchor"></a><code><span><span class="keyword">method</span> kill : <span>int <span class="arrow">&#45;&gt;</span></span> unit</span></code></div><div class="spec-doc"><p><code>kill signum</code> sends <code>signum</code> to the process if it is still running.</p></div></div><div class="odoc-spec"><div class="spec method anchored" id="method-terminate"><a href="#method-terminate" class="anchor"></a><code><span><span class="keyword">method</span> terminate : unit</span></code></div><div class="spec-doc"><p>Terminates the process. It is equivalent to <code>kill Sys.sigkill</code> on Unix but also works on Windows (unlike <code>Lwt_process.process_none.kill</code>).</p></div></div><div class="odoc-spec"><div class="spec method anchored" id="method-status"><a href="#method-status" class="anchor"></a><code><span><span class="keyword">method</span> status : <span><a href="../../../ocaml/Unix/index.html#type-process_status">Unix.process_status</a> <a href="../../Lwt/index.html#type-t">Lwt.t</a></span></span></code></div><div class="spec-doc"><p>Threads which wait for the sub-process to exit then returns its exit status</p></div></div><div class="odoc-spec"><div class="spec method anchored" id="method-rusage"><a href="#method-rusage" class="anchor"></a><code><span><span class="keyword">method</span> rusage : <span><a href="../../Lwt_unix/index.html#type-resource_usage">Lwt_unix.resource_usage</a> <a href="../../Lwt/index.html#type-t">Lwt.t</a></span></span></code></div><div class="spec-doc"><p>Threads which wait for the sub-process to exit then returns its resource usages</p></div></div><div class="odoc-spec"><div class="spec method anchored" id="method-close"><a href="#method-close" class="anchor"></a><code><span><span class="keyword">method</span> close : <span><a href="../../../ocaml/Unix/index.html#type-process_status">Unix.process_status</a> <a href="../../Lwt/index.html#type-t">Lwt.t</a></span></span></code></div><div class="spec-doc"><p>Closes the process and returns its exit status. This closes all channels used to communicate with the process</p></div></div></div></body></html>