summaryrefslogtreecommitdiffstats
path: root/base/posix
Commit message (Collapse)AuthorAgeFilesLines
* POSIX: add a maximum number of iterations to HANDLE_EINTRjln@chromium.org2013-01-231-4/+22
| | | | | | | | | | | | | | | In Debug builds, we add a maximum of 100 iterations to HANDLE_EINTR. After more than 100 iterations, the caller will see an EINTR. This is to prevent hard to debug infinite or long lasting loops in case a EINTR storm happens because of a bug. BUG=169416 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/12038034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178174 0039d316-1c4b-4281-b951-d872f2087c98
* Use SOCK_SEQPACKET for synchronous IPC.glider@google.com2013-01-183-22/+103
| | | | | | | | | | | | | | This is a copy of https://codereview.chromium.org/11738003 by mnissler@chromium.org SOCK_DGRAM fails in case the other end of the connection dies before sending a reply. This causes recvmsg() calls on the socket to hang, which results in stuck processes sticking around after running tests. BUG=chromium:166528 TEST=No more stuck --type=zygote processes in browser_tests and content_browsertests. Review URL: https://codereview.chromium.org/11823024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177638 0039d316-1c4b-4281-b951-d872f2087c98
* Linux sandbox: add a new low-level broker process mechanism.jln@chromium.org2012-12-141-1/+8
| | | | | | | | | | | | | | | | | We add a new low-level broker process mechanism that can be async signal safe and is suitable for use in the seccomp-bpf sandbox. Also fix UnixDomainSocket::SendMsg() to never generate a SIGPIPE. This is a re-land of https://chromiumcodereview.appspot.com/11557025/ (173064) BUG=165837 TBR=markus,willchan NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11564030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173128 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 173064gene@chromium.org2012-12-141-1/+1
| | | | | | | | | | | | | | | | | | | > Linux sandbox: add a new low-level broker process mechanism. > > We add a new low-level broker process mechanism that can be > async signal safe and is suitable for use in the seccomp-bpf sandbox. > > Also fix UnixDomainSocket::SendMsg() to never generate a SIGPIPE. > > BUG=165837 > NOTRY=true > > Review URL: https://chromiumcodereview.appspot.com/11557025 TBR=jln@chromium.org Review URL: https://codereview.chromium.org/11573030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173065 0039d316-1c4b-4281-b951-d872f2087c98
* Linux sandbox: add a new low-level broker process mechanism.jln@chromium.org2012-12-141-1/+1
| | | | | | | | | | | | | | We add a new low-level broker process mechanism that can be async signal safe and is suitable for use in the seccomp-bpf sandbox. Also fix UnixDomainSocket::SendMsg() to never generate a SIGPIPE. BUG=165837 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11557025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173064 0039d316-1c4b-4281-b951-d872f2087c98
* Move eintr_wrapper.h from base to base/posixbrettw@chromium.org2012-11-143-2/+35
| | | | | | Review URL: https://codereview.chromium.org/11366229 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167739 0039d316-1c4b-4281-b951-d872f2087c98
* Move global_descriptors to base/posix.brettw@chromium.org2012-11-092-0/+130
| | | | | | | | | | This file represents a posix-only concept. BUG= Review URL: https://codereview.chromium.org/11293210 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167008 0039d316-1c4b-4281-b951-d872f2087c98
* Move FileDescriptorShuffle to base/posix. This file is very posix-specific.brettw@chromium.org2012-11-093-0/+470
| | | | | | | | | TEST=it compiles BUG=none Review URL: https://codereview.chromium.org/10399100 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166970 0039d316-1c4b-4281-b951-d872f2087c98
* linux: Crash browser on too-big messages to zygote.derat@chromium.org2012-10-122-4/+7
| | | | | | | | | | | | | | | | | | | This adds CHECKs to the browser if it attempts to send a message to the zygote that exceeds the maximum message size (which causes an EMSGSIZE error in the zygote) or that contains too many file descriptors. I'm hoping that this will help make the source of the problem more apparent when we hit the message size limit, which we appear to have done multiple times (it was originally 1 KB and is now 2 KB). BUG=154409 Review URL: https://chromiumcodereview.appspot.com/11108019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161645 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a couple small problems in base/thestig@chromium.org2012-10-121-1/+1
| | | | | | Review URL: https://chromiumcodereview.appspot.com/11118004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161510 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the rest of #pragma once in one big CL.ajwong@chromium.org2012-07-111-1/+0
| | | | | | | | | For context see this thread: https://groups.google.com/a/chromium.org/forum/?fromgroups#!topic/chromium-dev/RMcVNGjB4II TBR=thakis,pkasting,jam git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146163 0039d316-1c4b-4281-b951-d872f2087c98
* Tighten up DEPS some more. NaCl/service process code are including internal ↵jam@chromium.org2012-06-042-0/+202
content files. Fix the instances other sandbox stuff, which I'll do in a followup. BUG=98716 Review URL: https://chromiumcodereview.appspot.com/10512010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140346 0039d316-1c4b-4281-b951-d872f2087c98