I probably have a mis-understanding of how Qt's startDetached()
works but I am witnessing a problem where I have an application that functions as a remote launcher.
The launcher spawns processes off using startDetached
which I thought separates the launcher app completely from the new process. However, something fishy is happening with the ports that the launcher utilizes. It seems the spawned processes are also listening on these same ports, despite the fact that they don't use any network code.
The problem lies when I kill the launcher process, I can't restart it because the spawned processes seem to be still using the port the launcher is attempting to start on.
My question is, what am I doing wrong? Is there a better way for a remote agent to launch processes that don't also attach themselves to ports?
This is in a Linux environment.
EDIT: Qt Bug I ended up employing that bug fix and just recompiled Qt. Seemed to work!