Hi Terry,

> So what was your intention when you wrote those lines:
>
>         r = bell_player.wait():
>         if r:
>             print 'bell_player: mpg321 failed: %#x\n' % r
>         bell_player = None

I was intending that you'd see the results familiar from
https://www.mail-archive.com/dorset@mailman.lug.org.uk/msg07338.html 
when I talked about zombie processes, etc.

> It seems to me that if the mpg321 process exits with -15, that is no
> more a failure than if it exits with 0, because terminating the
> process was the intended behaviour.

Correct.  So `if r not in (0, -15):' looks apt.

Cheers, Ralph.

-- 
Next meeting:  Bournemouth, Tuesday, 2017-03-07 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue     / TO THE LIST OR THE AUTHOR

Reply via email to