mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Ignore failure to flush stdout/stderr in worker process at exit
This commit is contained in:
parent
955d040745
commit
560ed1c480
@ -196,8 +196,14 @@ def main():
|
||||
|
||||
notifier.queue.put(None)
|
||||
|
||||
sys.stdout.flush()
|
||||
sys.stderr.flush()
|
||||
try:
|
||||
sys.stdout.flush()
|
||||
except EnvironmentError:
|
||||
pass # Happens sometimes on OS X for GUI processes (EPIPE)
|
||||
try:
|
||||
sys.stderr.flush()
|
||||
except EnvironmentError:
|
||||
pass # Happens sometimes on OS X for GUI processes (EPIPE)
|
||||
return 0
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user