diff options
author | ted.mielczarek@gmail.com <ted.mielczarek@gmail.com> | 2014-10-09 19:34:31 +0000 |
---|---|---|
committer | ted.mielczarek@gmail.com <ted.mielczarek@gmail.com> | 2014-10-09 19:34:31 +0000 |
commit | df09b1ac29a291b8b45d6bc503268e01006b265f (patch) | |
tree | 86460a00c91f3dec27cc86a407a6895800f92e24 /src/client/linux/crash_generation/crash_generation_server.cc | |
parent | Remove workaround for Linux credential-passing bug (diff) | |
download | breakpad-df09b1ac29a291b8b45d6bc503268e01006b265f.tar.xz |
Linux multiprocess crash reporter: use pipe instead of socketpair in the client
A=Jed Davis <jld@mozilla.com> R=ted at https://breakpad.appspot.com/1724002/
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1390 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/client/linux/crash_generation/crash_generation_server.cc')
-rw-r--r-- | src/client/linux/crash_generation/crash_generation_server.cc | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/client/linux/crash_generation/crash_generation_server.cc b/src/client/linux/crash_generation/crash_generation_server.cc index 1abf826c..860e8bc9 100644 --- a/src/client/linux/crash_generation/crash_generation_server.cc +++ b/src/client/linux/crash_generation/crash_generation_server.cc @@ -275,14 +275,7 @@ CrashGenerationServer::ClientEvent(short revents) } // Send the done signal to the process: it can exit now. - memset(&msg, 0, sizeof(msg)); - struct iovec done_iov; - done_iov.iov_base = const_cast<char*>("\x42"); - done_iov.iov_len = 1; - msg.msg_iov = &done_iov; - msg.msg_iovlen = 1; - - HANDLE_EINTR(sendmsg(signal_fd, &msg, MSG_DONTWAIT | MSG_NOSIGNAL)); + // (Closing this will make the child's sys_read unblock and return 0.) close(signal_fd); return true; |