🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.lang.python
2 messages
2 total messages Started by Michal Sat, 17 Apr 2010 11:03
przechwycic ctrl-c
#27416
Author: Michal
Date: Sat, 17 Apr 2010 11:03
4 lines
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
#27417
Author: Wojciech Muła
Date: Sat, 17 Apr 2010 12:36
10 lines
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