signal handler

Thooney Millennier too at pk.highway.ne.jp
Tue Jun 22 14:55:39 CEST 1999


Hi, I want to use "signal()" in my program.

  import signal;
  def func(arg1,arg2):
      DO_SOMETHING_GOOD;
      print "OK!";
  signal.signal(SOME_SIGNAL,func);

It seems "func()" is not called 
when the program gets signal "SOME_SIGNAL".
Why?
Any help welcome.

(I have installed Python 1.5.2 on Linux 2.0.34 and
running.)

Thanks for reading.




More information about the Python-list mailing list