micropython-lib/signal/example_sigint_ign.py

11 wiersze
215 B
Python

import time
from signal import *
print("org signal() val:", signal(SIGINT, SIG_IGN))
print("read back signal() val:", signal(SIGINT, SIG_IGN))
print("You can't break me - use SIGTERM")
while 1:
time.sleep(1)