Ok, so I use the startDetached() and I can now create 68 instances, but no more than that. I get the 'QProcess: Destroyed while process is still running."
cat /proc/sys/kernel/pid_max
32768
cat /proc/sys/kernel/pid_max
32768
To copy to clipboard, switch view to plain text mode
I don't even have 300 PIDs when looking at 'top' or 'ps'.
When I start my apps with startDetrached() I am creating a custom widget for each one that has 6 slots, but I think that isn't an issue - yet.
Any idea what is going on?
Added after 1 21 minutes:
I tried:
{
QString program
= "my_program cmdline_option_1 cmdline_option_2";
process->startDetached(program);
process->terminate();
}
{
QProcess* process = new QProcess();
QString program = "my_program cmdline_option_1 cmdline_option_2";
process->startDetached(program);
process->terminate();
}
To copy to clipboard, switch view to plain text mode
And I still can only run 68 instances of my app. It always does 'QProcess: Destroyed while process is still running.'
Bookmarks