* fhandler_socket.cc: Create shared objects session local throughout.

* shared.cc (shared_name): Add argument to allow opening session
	local shared memory.
	* shared_info.h (shared_name): Change declaration accordingly.
This commit is contained in:
Corinna Vinschen
2008-03-27 10:43:14 +00:00
parent 4af0c5e8f3
commit e21ac1ebdb
4 changed files with 17 additions and 7 deletions

View File

@ -35,11 +35,12 @@ user_info NO_COPY *user_shared;
HANDLE NO_COPY cygwin_user_h;
char * __stdcall
shared_name (char *ret_buf, const char *str, int num)
shared_name (char *ret_buf, const char *str, int num, bool session_local)
{
extern bool _cygwin_testing;
__small_sprintf (ret_buf, "%s%s.%s.%d", cygheap->shared_prefix,
__small_sprintf (ret_buf, "%s%s.%s.%d",
session_local ? "" : cygheap->shared_prefix,
cygwin_version.shared_id, str, num);
if (_cygwin_testing)
strcat (ret_buf, cygwin_version.dll_build_date);