I just got a problem. I need to execute complex command lines in my program. Problem is that some system (...) calls can hang, so the script will also hang. So I determined to write multithreaded program and give some timeout for each system call.
So, there is some thread, and it made system("badprog.exe");
how can I stop the process from another thread?
P.S. Win32::Process is almost good for me, but it allows only simple program calls, not complex calls.
The problem seems to be unresolvable... I need straight solution, not workarounds such as .bat-files.