• OCaml logo OCaml logo
  • Learn
  • Packages
  • Community
  • Blog
  • Playground
  • Searching...
    Or go to: Standard Library API
  • Learn
  • Packages
  • Community
  • Blog
  • Playground
  • Get started
  • lwt

  • Documentation
  • doc
package lwt
  • lwt
    • Lwt
      • Infix
        • Let_syntax
          • Open_on_rhs
      • Let_syntax
        • Let_syntax
          • Open_on_rhs
      • Syntax
    • Lwt_condition
    • Lwt_list
    • Lwt_mutex
    • Lwt_mvar
    • Lwt_pool
    • Lwt_pqueue
      • Make
        • Ord
      • OrderedType
      • S
    • Lwt_result
      • Infix
      • Let_syntax
        • Let_syntax
          • Open_on_rhs
      • Syntax
    • Lwt_seq
    • Lwt_sequence
    • Lwt_stream
      • bounded_push
    • Lwt_switch
  • lwt.unix
    • Lwt_bytes
    • Lwt_config
    • Lwt_engine
      • Ev_backend
      • Versioned
        • libev_1
        • libev_2
      • abstract
      • libev
      • poll_based
      • select
      • select_based
      • t
    • Lwt_features
    • Lwt_fmt
    • Lwt_gc
    • Lwt_io
      • BE
      • LE
      • NumberIO
      • Versioned
    • Lwt_main
      • Enter_iter_hooks
      • Exit_hooks
      • Hooks
      • Leave_iter_hooks
    • Lwt_preemptive
    • Lwt_process
      • process
      • process_full
      • process_in
      • process_none
      • process_out
    • Lwt_sys
    • Lwt_throttle
      • Make
        • H
      • S
    • Lwt_timeout
    • Lwt_unix
      • IO_vectors
      • LargeFile
      • Versioned
Legend:
Library
Module
Module type
Parameter
Class
Class type
method pid : int

Pid of the sub-process

method state : state

Return the state of the process

method kill : int -> unit

kill signum sends signum to the process if it is still running.

method terminate : unit

Terminates the process. It is equivalent to kill Sys.sigkill on Unix but also works on Windows (unlike Lwt_process.process_none.kill).

method status : Unix.process_status Lwt.t

Threads which wait for the sub-process to exit then returns its exit status

method rusage : Lwt_unix.resource_usage Lwt.t

Threads which wait for the sub-process to exit then returns its resource usages

method close : Unix.process_status Lwt.t

Closes the process and returns its exit status. This closes all channels used to communicate with the process

Footer

OCaml

Innovation. Community. Security.

GitHub Discord Twitter Peertube RSS

About Us

  • Industrial Users
  • Academic Users
  • Why OCaml

Resources

  • Get Started
  • Language Manual
  • Standard Library API
  • Books
  • Releases

Community

  • Blog
  • Jobs

Policies

  • Carbon Footprint
  • Governance
  • Privacy
  • Code of Conduct