Python won't exit when called with absolute path from cron or subshell

前端 未结 2 931
天命终不由人
天命终不由人 2020-12-19 21:51

I have some python scripts that run via cron, and they no longer exit correctly when the script is called with an absolute path. They will hang until the process is termina

2条回答
  •  萌比男神i
    2020-12-19 22:07

    Ok, got it figured out. Thanks for the help.

    I ran an strace and found that it was hanging on the following:

    socket(PF_FILE, SOCK_STREAM, 0)         = 4
    connect(4, {sa_family=AF_FILE, path="/var/run/abrt/abrt.socket"}, 27^C
    
    

    That led to Bugzilla which indicated that SELinux was the problem. I had already changed SELinux to permissive mode (I screwed it up moving /var), but had not restarted abrtd.

    Restarting the abrtd service resolved the problem.

提交回复
热议问题