saltstack/salt — pull request #11925 by jcsp (2014-04-11 15:30:40+00:00)
Title: Fix #11919: handling exceptions in scheduled jobs

Improvements:

1. Catch exceptions from scheduled jobs and log them.
2. Only silence OSErrors removeing proc file if it's an EEXIST:
otherwise log it
3. Put the /var/cache/salt/minion/proc/ deletion in a finally:
block
4. Only respect a "running" job as such if its PID really exists