Module rusl::process

source ·

Structs§

Enums§

Functions§

  • Attempts to set up a signal handler for the provided signal number
  • Invoke the clone syscall with the provided CloneArgs. This function is inherently unsafe as poor arguments will cause memory unsafety, for example specifying CLONE_VM with a null stack pointer. Please read the Linux documentation for details
  • Clone this process using the specified arguments. Has an extreme risk of unsafety as the args determines among other things, what stack area to use which could almost immediately cause UB regardless if it is left as null or directly specified. See Linux documentation for correct usage
  • Executes provided binary bin with arguments arg_v and environment env_p. Both arg_v and env_p are null terminated arrays of null terminated strings. They can both be null without unsafety, although common practice is always supplying the binary itself as the first argument. Only returns on error. See Linux documentation for details
  • Causes normal process termination and returns the least significant byte of the code to the parent
  • fork
    Forks a process returning the pid of the spawned child to the parent, while the child gets 0 returned back. See the Linux documentation for details.
  • Waits for the specified process to finish. See Linux docs for details