Skip to content

Commit

Permalink
Merge spawn.descr into spawn.opam
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremie Dimino <[email protected]>
  • Loading branch information
jeremiedimino committed Apr 4, 2019
1 parent 7581ca8 commit 3d93488
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
18 changes: 0 additions & 18 deletions spawn.descr

This file was deleted.

19 changes: 19 additions & 0 deletions spawn.opam
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,22 @@ depends: [
"ppx_expect" {test}
"ocaml" {>= "4.02.3"}
]
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 performances 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.
"""

0 comments on commit 3d93488

Please sign in to comment.