Код: Выделить всё
x.py
Код: Выделить всё
import signal
print(signal.getsignal(signal.SIGINT))
Код: Выделить всё
noproblem.sh
Код: Выделить всё
python3 x.py
Код: Выделить всё
problem.sh
Код: Выделить всё
python3 x.py &
Код: Выделить всё
07:14 ~ $ python3 x.py
07:14 ~ $ python3 x.py &
[1] 126909
07:14 ~ $
[1]+ Done python3 x.py
07:14 ~ $ bash noproblem.sh
Код: Выделить всё
07:14 ~ $ bash problem.sh
07:14 ~ $ Handlers.SIG_IGN
Подробнее здесь: https://stackoverflow.com/questions/654 ... ell-script