Skip to content

Warn about negative exit code of child processes - #194

Merged
toslunar merged 3 commits into
chainer:masterfrom
muupan:check-async-exit-code
Dec 6, 2017
Merged

Warn about negative exit code of child processes#194
toslunar merged 3 commits into
chainer:masterfrom
muupan:check-async-exit-code

Conversation

@muupan

@muupan muupan commented Dec 1, 2017

Copy link
Copy Markdown
Member

No description provided.

Comment thread chainerrl/misc/async.py Outdated
p.join()
if p.exitcode < 0:
warnings.warn(
"Process {}'s exit code was not zero but {}".format(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to know the process_idx.
How about "Process #{} (pid={}) exited with nonzero status {}".format(i, p.pid, p.exitcode)?

@muupan

muupan commented Dec 6, 2017

Copy link
Copy Markdown
Member Author

I added a test to check if warnings are raised or not.

@toslunar toslunar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@toslunar
toslunar merged commit 36aea6e into chainer:master Dec 6, 2017
@muupan
muupan deleted the check-async-exit-code branch December 6, 2017 12:10
@muupan muupan added this to the v0.3 milestone Dec 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants