in reply to break thread with system(...) call

alarm sets timeouts, and at least on linux this also aborts external programs. I don't know if that works well on windows, though.

Replies are listed 'Best First'.
Re^2: break thread with system(...) call
by Anonymous Monk on Jul 16, 2008 at 18:59 UTC
    oh, great! thanks! it works (even here, on windows XP), but launched process (I'm testing launching notepad.exe) is not closed... are there any ideas? It must be closed because after some time the server will be overflooded with the hanging processes.