Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[iOS] Regression(r249703) frequent 'kill() returned unexpected error'…
… log messages https://bugs.webkit.org/show_bug.cgi?id=202173 Reviewed by Geoffrey Garen. The kill(pid, 0) command actually fails with an EPERM error when there is a process running with the given pid, and this is causing us to log a lot of errors. The good news is that we merely want to know that there is no process with the given PID and we correctly get a ESRCH error in this case. I renamed the function from isRunningProcessPID() to wasTerminated() and only check for ESRCH error now. I no longer log any error otherwise since this is expected. Also, for performance reason, I no longer call kill(pid, 0) from inside AuxiliaryProcessProxy::state() as it gets called a lot. I instead only call it from AuxiliaryProcessProxy::wasTerminated() and call it from WebProcessPool::tryTakePrewarmedProcess(). * UIProcess/AuxiliaryProcessProxy.cpp: (WebKit::AuxiliaryProcessProxy::state const): (WebKit::AuxiliaryProcessProxy::wasTerminated const): (WebKit::AuxiliaryProcessProxy::isRunningProcessPID): Deleted. * UIProcess/AuxiliaryProcessProxy.h: * UIProcess/WebProcessPool.cpp: (WebKit::WebProcessPool::tryTakePrewarmedProcess): Canonical link: https://commits.webkit.org/215772@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@250329 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
4 changed files
with
46 additions
and
19 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
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