forked from twitter/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ng-killall by swallowing psutil exceptions in filter
ng-killall will fail to kill nailguns if there is a process earlier in the process list that has attributes that can't be accessed. This patch wraps ProcessManager.process_iter's filter with a exception swallow call which allows it to continue if the filter calls a psutil error causing method. Testing Done: Wrote unit tests exhibiting the behavior I was seeing and made them pass. Tried running ng-killall after the change and saw it work. Bugs closed: 3840, 3869 Reviewed at https://rbcommons.com/s/twitter/r/4237/ closes pantsbuild#3840 closes pantsbuild#3869
- Loading branch information
1 parent
96e0187
commit 3e6e212
Showing
2 changed files
with
44 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters