-
Notifications
You must be signed in to change notification settings - Fork 20
/
dune-project
35 lines (28 loc) · 1.03 KB
/
dune-project
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
(lang dune 2.8)
(name spawn)
(generate_opam_files true)
(maintainers [email protected])
(source (github janestreet/spawn))
(documentation https://janestreet.github.io/spawn/)
(authors "Jane Street Group, LLC <[email protected]>")
(license MIT)
(package
(name spawn)
(depends
(ppx_expect :with-test)
(ocaml (>= 4.05)))
(synopsis "Spawning sub-processes")
(description "\
Spawn is a small library exposing only one functionality: spawning sub-process.
It has three main goals:
1. provide missing features of Unix.create_process such as providing a
working directory
2. provide better errors when a system call fails in the
sub-process. For instance if a command is not found, you get a proper
[Unix.Unix_error] exception
3. improve performance by using vfork when available. It is often
claimed that nowadays fork is as fast as vfork, however in practice
fork takes time proportional to the process memory while vfork is
constant time. In application using a lot of memory, vfork can be
thousands of times faster than fork.
"))