Fix crash when terminating a task in the task manager with a PID of 0
Simple guard to prevent tasks with pid 0 from being killable. If a user tries to kill a task with pid 0 there is a crash. By doing a simple check to see if the pid is 0 we prevent this. A pid should also only be 0 for a short period of time in certain race conditions. Bug: 749459 Change-Id: Iba63b63d6606dbf403cbae3bf2fef4c882f395c5 Reviewed-on: https://chromium-review.googlesource.com/594308Reviewed-by:Charlie Reis <creis@chromium.org> Reviewed-by:
Nick Carter <nick@chromium.org> Commit-Queue: Charles Burnell <cburn@google.com> Cr-Commit-Position: refs/heads/master@{#491424}
Showing
Please register or sign in to comment