@@ -375,9 +375,9 @@ pub fn execv(path: &CString, argv: &[CString]) -> Result<Void> {
375
375
/// [execve(2)#errors](http://man7.org/linux/man-pages/man2/execve.2.html#ERRORS)
376
376
/// for a list of potential problems that maight cause execv to fail.
377
377
///
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
381
381
/// `env` list should be a string in the form "key=value".
382
382
#[ inline]
383
383
pub 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>
396
396
/// [exec(3)](http://man7.org/linux/man-pages/man3/exec.3.html)).
397
397
///
398
398
/// 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
400
400
/// 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`.
403
403
#[ inline]
404
404
pub fn execvp ( filename : & CString , args : & [ CString ] ) -> Result < Void > {
405
405
let args_p = to_exec_array ( args) ;
@@ -423,17 +423,14 @@ pub fn execvp(filename: &CString, args: &[CString]) -> Result<Void> {
423
423
/// 2. Parent process exits
424
424
/// 3. Child process continues to run.
425
425
///
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`:
430
427
///
431
428
/// * `nochdir = true`: The current working directory after daemonizing will
432
429
/// be the current working directory.
433
430
/// * `nochdir = false`: The current working directory after daemonizing will
434
431
/// be the root direcory, `/`.
435
432
///
436
- /// For `noclose`:
433
+ /// `noclose`:
437
434
///
438
435
/// * `noclose = true`: The process' current stdin, stdout, and stderr file
439
436
/// descriptors will remain identical after daemonizing.
0 commit comments