posixspawnattrt
posix_spawnattr_t is a data type defined by POSIX that represents a collection of attributes used by the posix_spawn function when creating a new process. It provides a portable way to influence how a child process is initialized, separate from the program image that will be executed. The attributes controlled through this object cover aspects such as the child’s process group, scheduling parameters and policy, and signal handling behavior. Using posix_spawnattr_t, a program can tailor the child’s environment without forking first.
The posix_spawnattr_t object is opaque to the programmer and must be managed with a defined lifecycle. It
In practice, programs use posix_spawnattr_t in conjunction with posix_spawn_file_actions_t and posix_spawn to create a new process