public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
From: "kevin at scrye dot com" <sourceware-bugzilla@sourceware.org> To: glibc-bugs@sourceware.org Subject: [Bug libc/16274] shm_open changes break webkitgtk (at least) Date: Fri, 29 Nov 2013 00:00:00 -0000 [thread overview] Message-ID: <bug-16274-131-OyvEF8WGkp@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-16274-131@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=16274 --- Comment #1 from Kevin Fenzi <kevin at scrye dot com> --- Fyi, the code in webkitgtk is: CString tempName; int fileDescriptor = -1; for (int tries = 0; fileDescriptor == -1 && tries < 10; ++tries) { String name = String("WK2SharedMemory.") + String::number(static_cast<unsigned>(WTF::randomNumber() * (std::numeric_limits<unsigned>::max() + 1.0))); tempName = name.utf8(); do { fileDescriptor = shm_open(tempName.data(), O_CREAT | O_CLOEXEC | O_RDWR, S_IRUSR | S_IWUSR); } while (fileDescriptor == -1 && errno == EINTR); } if (fileDescriptor == -1) { WTFLogAlways("Failed to create shared memory file %s", tempName.data()); return 0; } -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2013-11-29 0:00 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-11-28 23:58 [Bug libc/16274] New: " kevin at scrye dot com 2013-11-29 0:00 ` kevin at scrye dot com [this message] 2013-12-03 19:18 ` [Bug libc/16274] " cvs-commit at gcc dot gnu.org 2014-06-13 9:31 ` fweimer at redhat dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-16274-131-OyvEF8WGkp@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=glibc-bugs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).