8000 GitHub - emillon/spawn at v0.13.0
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

emillon/spawn

Repository files navigation

SPAWN - spawning system process

Travis status AppVeyor status

Spawn is a small library exposing only one function: Spawn.spawn. Its purpose is to start command in the background. Spawn aims to provide a few missing features of Unix.create_process such as providing a working directory as well as improving error reporting and performance.

Errors such as directory or program not found are properly reported as Unix.Unix_error exceptions, on both Unix and Windows.

On Unix, Spawn uses vfork by default as it is often a lot faster than fork. There is a benchmark comparing Spawn.spawn to Unix.create_process in spawn-lib/bench. If you don't trust vfork, you can set the environment variable SPAWN_USE_FORK to make Spawn use fork instead.

Portability

Spawn is expected to be fully portable. However, so far it has only been tested on Linux, OSX and Windows.

About

Spawning sub-processes

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 55.0%
  • OCaml 40.9%
  • Nix 2.8%
  • Makefile 1.3%
0