Bug 781256 - 'Share FileDescriptors across processes in preparation for OS-level sandbox'. r=khuey+cjones.
This commit is contained in:
@@ -689,9 +689,8 @@ PluginModuleParent::RecvBackUpXResources(const FileDescriptor& aXSocketFd)
|
||||
#else
|
||||
NS_ABORT_IF_FALSE(0 > mPluginXSocketFdDup.get(),
|
||||
"Already backed up X resources??");
|
||||
int fd = aXSocketFd.fd; // Copy to discard |const| qualifier
|
||||
mPluginXSocketFdDup.forget();
|
||||
mPluginXSocketFdDup.reset(fd);
|
||||
mPluginXSocketFdDup.reset(aXSocketFd.PlatformHandle());
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user