@@ -375,9 +375,9 @@ pub fn execv(path: &CString, argv: &[CString]) -> Result<Void> {
375375/// [execve(2)#errors](http://man7.org/linux/man-pages/man2/execve.2.html#ERRORS)
376376/// for a list of potential problems that maight cause execv to fail.
377377///
378- /// Both `::nix::unistd::execv` and `::nix::unistd::execve` take as arguments a
379- /// slice of `::std::ffi::CString`s for `args` and `env`. Each element in
380- /// the `args` list is an argument to the new process. Each element in the
378+ /// `::nix::unistd::execv` and `::nix::unistd::execve` take as arguments a slice
379+ /// of `::std::ffi::CString`s for `args` and `env` (for `execve`). Each element
380+ /// in the `args` list is an argument to the new process. Each element in the
381381/// `env` list should be a string in the form "key=value".
382382#[ inline]
383383pub fn execve ( path : & CString , args : & [ CString ] , env : & [ CString ] ) -> Result < Void > {
@@ -396,10 +396,10 @@ pub fn execve(path: &CString, args: &[CString], env: &[CString]) -> Result<Void>
396396/// [exec(3)](http://man7.org/linux/man-pages/man3/exec.3.html)).
397397///
398398/// See `::nix::unistd::execve` for additoinal details. `execvp` behaves the
399- /// sme as execv except that it will examine the `PATH` environment variables
399+ /// same as execv except that it will examine the `PATH` environment variables
400400/// for file names not specified with a leading slash. For example, `execv`
401- /// would not work if I specified "bash" for the path argument, but `execvp`
402- /// would assuming that I had a bash executable on my `PATH`.
401+ /// would not work if "bash" was specified for the path argument, but `execvp`
402+ /// would assuming that a bash executable was on the system `PATH`.
403403#[ inline]
404404pub fn execvp ( filename : & CString , args : & [ CString ] ) -> Result < Void > {
405405 let args_p = to_exec_array ( args) ;
@@ -423,17 +423,14 @@ pub fn execvp(filename: &CString, args: &[CString]) -> Result<Void> {
423423/// 2. Parent process exits
424424/// 3. Child process continues to run.
425425///
426- /// There are a couple options here whose names and meaning can be a bit
427- /// confusing, so we'll describe the behavior for each state.
428- ///
429- /// For `nochdir`:
426+ /// `nochdir`:
430427///
431428/// * `nochdir = true`: The current working directory after daemonizing will
432429/// be the current working directory.
433430/// * `nochdir = false`: The current working directory after daemonizing will
434431/// be the root direcory, `/`.
435432///
436- /// For `noclose`:
433+ /// `noclose`:
437434///
438435/// * `noclose = true`: The process' current stdin, stdout, and stderr file
439436/// descriptors will remain identical after daemonizing.
0 commit comments