did anyone noticed such thing?
i make
|
Source code
|
1
2
3
4
5
6
7
8
|
QMap<QString,QProcess *> map;
QProcess *process=new Qprocess();
process->start("command",parameters,QProcess::ReadOnly);
process->waitForStarted();
if(!process->waitForFinished(2000))
map.insert(myprocessid,process)
else
delete process;
|
---
and much much later i iterate through map, take process (QProcess *) and for all items do
|
Source code
|
1
2
3
|
process->kill();
process->waitForFinished();
delete process;
|
if launched processes are bash scripts then kill kills the script, but leaves all applications it launched running....i may kill them manually from commandline or some process list tools, but qt behaves as if it was successfull, just doesn't do anything for real. any idea how to solve this?
any idea what could be reason?