Python won't exit when called with absolute path from cron or subshell
问题 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 terminated. I believe it happened after I moved /var and /home to a different partition. I checked into the environment variables and couldn't see anything obviously wrong, this happens either when run with cron or a bash subshell, but not when run directly. If I run it as a subshell it hangs until I kill it (ctrl-c) and then