Build fixes for FreeBSD.

https://bugs.webkit.org/show_bug.cgi?id=126779

Patch by Koop Mast <kwm@FreeBSD.org> on 2014-01-22
Reviewed by Csaba Osztrogonác.

* UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp:
(WebKit::PluginProcessProxy::scanPlugin):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162513 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent a47252b2
2014-01-22 Koop Mast <kwm@FreeBSD.org>
Build fixes for FreeBSD.
https://bugs.webkit.org/show_bug.cgi?id=126779
Reviewed by Csaba Osztrogonác.
* UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp:
(WebKit::PluginProcessProxy::scanPlugin):
2014-01-22 Jinwoo Song <jinwoo7.song@samsung.com>
[EFL][WK2] Use std::function in the rest of EFL's WorkQueue implementation
......
......@@ -40,6 +40,8 @@
#include <wtf/gobject/GOwnPtr.h>
#endif
#include <sys/wait.h>
using namespace WebCore;
namespace WebKit {
......@@ -79,12 +81,14 @@ bool PluginProcessProxy::scanPlugin(const String& pluginPath, RawPluginMetaData&
// able to return the status.
// As a consequence, we make sure that the disposition is set to
// SIG_DFL before calling g_spawn_sync().
#if defined(SIGCLD)
struct sigaction action;
sigaction(SIGCLD, 0, &action);
if (action.sa_handler == SIG_IGN) {
action.sa_handler = SIG_DFL;
sigaction(SIGCLD, &action, 0);
}
#endif
if (!g_spawn_sync(0, argv, 0, G_SPAWN_STDERR_TO_DEV_NULL, 0, 0, &stdOut.outPtr(), 0, &status, 0))
return false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment