diff options
Diffstat (limited to 'otherlibs/unix')
-rw-r--r-- | otherlibs/unix/Makefile | 2 | ||||
-rw-r--r-- | otherlibs/unix/unix.mli | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/otherlibs/unix/Makefile b/otherlibs/unix/Makefile index 18b7fd4c5..98ef618b0 100644 --- a/otherlibs/unix/Makefile +++ b/otherlibs/unix/Makefile @@ -19,7 +19,7 @@ OBJS=accept.o access.o addrofstr.o alarm.o bind.o chdir.o chmod.o \ readdir.o readlink.o rename.o rewinddir.o rmdir.o select.o sendrecv.o \ setgid.o setuid.o shutdown.o sleep.o socket.o socketaddr.o \ socketpair.o stat.o strofaddr.o symlink.o termios.o time.o times.o \ - truncate.o umask.o unix.o unlink.o utimes.o wait.o waitpid.o \ + truncate.o umask.o unix.o unlink.o utimes.o wait.o waitopt.o waitpid.o \ write.o INTF= unix.cmi diff --git a/otherlibs/unix/unix.mli b/otherlibs/unix/unix.mli index 3b48a8d41..b1a866f7a 100644 --- a/otherlibs/unix/unix.mli +++ b/otherlibs/unix/unix.mli @@ -158,8 +158,11 @@ external wait : unit -> int * process_status = "unix_wait" and termination status. *) external waitpid : wait_flag list -> int -> int * process_status = "unix_waitpid" - (* Same as [waitopt], but waits for the process whose pid is given. - Negative pid arguments represent process groups. *) + (* Same as [wait], but waits for the process whose pid is given. + A pid of [0] means wait for any child. + Negative pid arguments represent process groups. + The list of options indicates whether [waitpid] should return + immediately without waiting, or also report stopped children. *) val system : string -> process_status (* Execute the given command, wait until it terminates, and return its termination status. The string is interpreted by the shell |