[BangPypers] Popen.terminate() - WindowsError: [Error 5] Access is denied
nikunjbadjatya at gmail.com
Tue Feb 28 19:19:25 CET 2012
Any clues guys?
On Tue, Feb 28, 2012 at 12:48 PM, <Nikunj.Badjatya at emc.com> wrote:
> Py ver - 3.2, Windows-XP . Logged in as user with admin privileges.
> >From my main python program, I am running powershell program using
> Now I have created a signal_handler() function in main python script which
> will handle CTRL-C ( This works fine ).
> Now when I put "proc.terminate()" in my signal_handler() function to
> terminate the subprocess created as well,
> It is giving me "WindowsError: [Error 5] Access is denied" error.
> I have tried with os.kill() also, same error. Tried with Popen.kill()
> also same error. Have googled a bit but couldn't understand them.
> In general, How to kill a subprocesses created from a python program.? If
> that subprocess also creates a new process from itself, how can I kill all
> child processes from my main python script.?
> Any ideas.??
> 7 Switch off as you go | qRecycle always | P Save Paper - Save Trees |
> Go Green
> BangPypers mailing list
> BangPypers at python.org
More information about the BangPypers