New ScreenPanel
This commit is contained in:
16
script/cpython7.py
Executable file
16
script/cpython7.py
Executable file
@@ -0,0 +1,16 @@
|
||||
|
||||
|
||||
import signal, os, sys
|
||||
|
||||
import thread
|
||||
print thread.get_ident()
|
||||
|
||||
|
||||
def handler(signum, frame):
|
||||
print 'Signal handler called with signal', signum
|
||||
raise IOError("Couldn't open device!")
|
||||
|
||||
# Set the signal handler and a 5-second alarm
|
||||
signal.signal(4, handler)
|
||||
|
||||
#signal
|
||||
Reference in New Issue
Block a user