public inbox for cygwin-cvs@sourceware.org help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org> To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: signalfd: set st_mode in fhandler_signalfd::fstat Date: Tue, 15 Jan 2019 21:02:00 -0000 [thread overview] Message-ID: <20190115210251.87618.qmail@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=b6f53617a7512082abb7e249d93cbbbe02f19255 commit b6f53617a7512082abb7e249d93cbbbe02f19255 Author: Corinna Vinschen <corinna@vinschen.de> Date: Tue Jan 15 21:49:52 2019 +0100 Cygwin: signalfd: set st_mode in fhandler_signalfd::fstat Signed-off-by: Corinna Vinschen <corinna@vinschen.de> Diff: --- winsup/cygwin/fhandler.cc | 3 --- winsup/cygwin/fhandler_signalfd.cc | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc index 2c1fcb7..9643373 100644 --- a/winsup/cygwin/fhandler.cc +++ b/winsup/cygwin/fhandler.cc @@ -1345,9 +1345,6 @@ fhandler_base::fstat (struct stat *buf) case FH_PIPER: buf->st_mode = S_IFIFO | S_IRUSR; break; - case FH_SIGNALFD: - buf->st_mode = S_IRUSR | S_IWUSR; - break; default: buf->st_mode = S_IFCHR | STD_RBITS | STD_WBITS | S_IWGRP | S_IWOTH; break; diff --git a/winsup/cygwin/fhandler_signalfd.cc b/winsup/cygwin/fhandler_signalfd.cc index 24cf403..d8e17a8 100644 --- a/winsup/cygwin/fhandler_signalfd.cc +++ b/winsup/cygwin/fhandler_signalfd.cc @@ -59,6 +59,7 @@ fhandler_signalfd::fstat (struct stat *buf) int ret = fhandler_base::fstat (buf); if (!ret) { + buf->st_mode = S_IRUSR | S_IWUSR; buf->st_dev = FH_SIGNALFD; buf->st_ino = get_unique_id (); }
reply other threads:[~2019-01-15 21:02 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20190115210251.87618.qmail@sourceware.org \ --to=corinna@sourceware.org \ --cc=cygwin-cvs@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).