I have a C++ program that acts as a watchdog over others. If it detects that a process is no longer running, it restarts it via system. The problem is, if I kil
There's an execvp example in https://github.com/w-A-L-L-e/wash/blob/master/src/wash.cpp. Passing command line args is sometimes an issue with exec* functions from unistd and getting the environment passed can be some work. Anyway, hope it helps...