Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use WTF::getCurrentProcessID() instead of getpid()
https://bugs.webkit.org/show_bug.cgi?id=173130

Patch by Daewoong Jang <daewoong.jang@navercorp.com> on 2017-06-09
Reviewed by Tim Horton.

* UIProcess/API/APIProcessPoolConfiguration.h:

Canonical link: https://commits.webkit.org/189999@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@217975 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
Daewoong Jang authored and webkit-commit-queue committed Jun 9, 2017
1 parent 8705733 commit d83437a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions Source/WebKit2/ChangeLog
@@ -1,3 +1,12 @@
2017-06-09 Daewoong Jang <daewoong.jang@navercorp.com>

Use WTF::getCurrentProcessID() instead of getpid()
https://bugs.webkit.org/show_bug.cgi?id=173130

Reviewed by Tim Horton.

* UIProcess/API/APIProcessPoolConfiguration.h:

2017-06-09 Claudio Saavedra <csaavedra@igalia.com>

struct does not accept initializer-form if member has initializers in GCC 4.9
Expand Down
3 changes: 2 additions & 1 deletion Source/WebKit2/UIProcess/API/APIProcessPoolConfiguration.h
Expand Up @@ -29,6 +29,7 @@
#include "APIObject.h"
#include "CacheModel.h"
#include "WebsiteDataStore.h"
#include <wtf/ProcessID.h>
#include <wtf/Ref.h>
#include <wtf/Vector.h>
#include <wtf/text/CString.h>
Expand Down Expand Up @@ -169,7 +170,7 @@ class ProcessPoolConfiguration final : public ObjectImpl<Object::Type::ProcessPo
bool m_alwaysRunsAtBackgroundPriority { false };
bool m_shouldTakeUIBackgroundAssertion { true };
bool m_shouldCaptureAudioInUIProcess { false };
pid_t m_presentingApplicationPID { getpid() };
pid_t m_presentingApplicationPID { getCurrentProcessID() };
#if PLATFORM(IOS)
WTF::String m_ctDataConnectionServiceType;
#endif
Expand Down

0 comments on commit d83437a

Please sign in to comment.