Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Failed to reap %d:' logging fails for None PIDs #9775

Closed
twisted-trac opened this issue Mar 15, 2020 · 5 comments
Closed

'Failed to reap %d:' logging fails for None PIDs #9775

twisted-trac opened this issue Mar 15, 2020 · 5 comments

Comments

@twisted-trac
Copy link

altendky's avatar @altendky reported
Trac ID trac#9775
Type defect
Created 2020-03-15 01:26:10Z

A None PID shouldn't be being reaped but when it happens you just get an extra layer of errors to deal with.

log.msg('Failed to reap %d:' % pid)

log.msg('Failed to reap %d:' % self.pid)

This came up while working on pytest-dev/pytest-twisted#93.

The small solution is to switch to a string format rather then %d (%s or '{}'.format() etc).

It was suggested that the module should also be converted to use twisted.logger but I'm not going to take that on at this point and it isn't required to address the specific issue. Sorry... :[

Searchable metadata
trac-id__9775 9775
type__defect defect
reporter__altendky altendky
priority__normal normal
milestone__None None
branch__ 
branch_author__ 
status__closed closed
resolution__fixed fixed
component__core core
keywords__None None
time__1584235570996590 1584235570996590
changetime__1586726867698940 1586726867698940
version__None None
owner__altendky altendky
cc__altendky
@twisted-trac
Copy link
Author

altendky's avatar @altendky commented

PR: #1230

@twisted-trac
Copy link
Author

altendky's avatar @altendky set owner to @altendky
@altendky set status to assigned

@twisted-trac
Copy link
Author

altendky's avatar @altendky removed owner
@altendky set status to new

@twisted-trac
Copy link
Author

rodrigc's avatar @rodrigc set owner to @altendky

Approved: #1230 (review)

@twisted-trac
Copy link
Author

rodrigc's avatar @rodrigc set status to closed

In changeset ed47278

#!CommitTicketReference repository="" revision="ed4727842aefd62803f26489b1cd1eadbbfc5c6e"
Merge pull request #1230 from altendky/9775-altendky-log_failed_to_reap_for_none_pid

[9775] Avoid log failure when reaping of None PID is requested

Author: altendky
Reviewers: rodrigc
Fixes: ticket:9775

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant