Bug 781256 - 'Share FileDescriptors across processes in preparation for OS-level sandbox'. r=khuey+cjones.

This commit is contained in:
Ben Turner
2012-08-16 00:02:32 -04:00
parent 90da3f7952
commit c8df603ac2
40 changed files with 1102 additions and 125 deletions

View File

@@ -1850,10 +1850,10 @@ PluginModuleChild::AnswerNP_Initialize(const uint32_t& aFlags, NPError* _retval)
#endif
#ifdef MOZ_X11
// Send the parent a dup of our X socket, to act as a proxy
// reference for our X resources
// Send the parent our X socket to act as a proxy reference for our X
// resources.
int xSocketFd = ConnectionNumber(DefaultXDisplay());
SendBackUpXResources(FileDescriptor(xSocketFd, false/*don't close*/));
SendBackUpXResources(FileDescriptor(xSocketFd));
#endif
#if defined(OS_LINUX)