summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_fifo.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/fhandler_fifo.cc')
-rw-r--r--winsup/cygwin/fhandler_fifo.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/fhandler_fifo.cc b/winsup/cygwin/fhandler_fifo.cc
index cd8e5c0d3..eaf67c13e 100644
--- a/winsup/cygwin/fhandler_fifo.cc
+++ b/winsup/cygwin/fhandler_fifo.cc
@@ -68,9 +68,9 @@ fhandler_fifo::open (int flags, mode_t)
char npname[MAX_PATH];
DWORD mode = 0;
- /* Generate a semi-unique name to associate with this fifo.
- FIXME: Probably should use "inode" and "dev" from stat for this. */
- __small_sprintf (npname, "\\\\.\\pipe\\__cygfifo__%lx", get_namehash ());
+ /* Generate a semi-unique name to associate with this fifo. */
+ __small_sprintf (npname, "\\\\.\\pipe\\__cygfifo__%08x_%016X",
+ get_dev (), get_ino ());
unsigned low_flags = flags & O_ACCMODE;
if (low_flags == O_RDONLY)