I swapped the fork() and execvp() code for posix_spawnp(). This change enhances efficiency by minimising system calls, which speeds up process creation. posix_spawnp() also offers finer control over the new process, such as setting attributes, optimising its performance. Additionally, in config.mk update, I've introduced an optional optimisations flag for those who wish to utilise them. Additionally, I've included the -Wno-unused-function flag in the CFLAGS, which suppresses warnings about unused functions, thereby removing dead code.
I swapped the fork() and execvp() code for posix_spawnp(). This change enhances efficiency by minimising system calls, which speeds up process creation. posix_spawnp() also offers finer control over the new process, such as setting attributes, optimising its performance. Additionally, in config.mk update, I've introduced an optional optimisations flag for those who wish to utilise them. Additionally, I've included the -Wno-unused-function flag in the CFLAGS, which suppresses warnings about unused functions, thereby removing dead code.