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
system
Try using system with setsid before the process name.
setsid
system("setsid processname /path/to/processConfig.xml &");
This will launch the program in a new session.