Thread View: pl.comp.lang.python
2 messages
2 total messages
Started by Michal
Sat, 17 Apr 2010 11:03
przechwycic ctrl-c
Author: Michal
Date: Sat, 17 Apr 2010 11:03
Date: Sat, 17 Apr 2010 11:03
4 lines
939 bytes
939 bytes
Jak ze skrytptu przechwycic sygnal emitowany przy wcisnieciu ctrl-c?. Chodzi mi o to aby skrypt ubil po sobie wszystkie procesy, ktore odpalil za pomoca subprocess.Popen. -- Michal
Re: przechwycic ctrl-c
Author: Wojciech Muła
Date: Sat, 17 Apr 2010 12:36
Date: Sat, 17 Apr 2010 12:36
10 lines
1199 bytes
1199 bytes
Michal <natural-born-killer@donotmail.me> wrote: > Jak ze skrytptu przechwycic sygnal emitowany przy wcisnieciu ctrl-c?. > Chodzi mi o to aby skrypt ubil po sobie wszystkie procesy, ktore odpalil > za pomoca subprocess.Popen. Przechwytuj wyjÄ…tek KeyboardInterrupt albo zarejestruj funkcjÄ™ czyszczÄ…cÄ… przez atexit.register. w.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads