This is the mail archive of the cygwin-cvs@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[newlib-cygwin] Cygwin: AF_UNIX: use get_unique_id to create pipe name


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=de29476ed5ea1298389f20c8f3b1b57d887f0b27

commit de29476ed5ea1298389f20c8f3b1b57d887f0b27
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Sun Mar 11 14:54:20 2018 +0100

    Cygwin: AF_UNIX: use get_unique_id to create pipe name
    
    It's the same as get_plain_ino in this case, but it's cleaner
    and easier to understand.
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/cygwin/fhandler_socket_unix.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/winsup/cygwin/fhandler_socket_unix.cc b/winsup/cygwin/fhandler_socket_unix.cc
index 4f7d9e0..ec5611a 100644
--- a/winsup/cygwin/fhandler_socket_unix.cc
+++ b/winsup/cygwin/fhandler_socket_unix.cc
@@ -204,7 +204,7 @@ fhandler_socket_unix::gen_pipe_name ()
   __small_swprintf (pipe_name_buf, L"cygwin-%S-unix-%C-%016_X",
 		    &cygheap->installation_key,
 		    get_type_char (),
-		    get_plain_ino ());
+		    get_unique_id ());
   RtlInitUnicodeString (&pipe_name, pipe_name_buf);
   pc.set_nt_native_path (&pipe_name);
 }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]