Structs§
Enums§
- Some (not all) signals it makes sense to handle. See the Linux documentation for details Some are expclicitly disallowed (
SigKill
,SigStop
), some cannot be handled safely by this library yetSigAbrt
f.e.
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 specifyingCLONE_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 argumentsarg_v
and environmentenv_p
. Botharg_v
andenv_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