diff options
author | Christopher Faylor <me@cgf.cx> | 2010-03-09 21:26:55 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2010-03-09 21:26:55 +0000 |
commit | bd3b3783f8d2b80eef694324c6d0c143613b05be (patch) | |
tree | 396c57c32ce8e1ad1cbedb9e9e4e467410cd2295 /winsup/cygwin/fhandler_process.cc | |
parent | fab7d5988a0518e7c33a69799676453385c876f5 (diff) | |
download | cygnal-bd3b3783f8d2b80eef694324c6d0c143613b05be.tar.gz cygnal-bd3b3783f8d2b80eef694324c6d0c143613b05be.tar.bz2 cygnal-bd3b3783f8d2b80eef694324c6d0c143613b05be.zip |
* shared_info.h (open_shared): Create function wrapper for common use case.
(open_shared): Change fifth argument to a pointer rather than a reference.
* fhandler_console.cc (fhandler_console::get_tty_stuff): Eliminate use of dummy
variable and call open_shared with constant.
* fhandler_process.cc (format_process_mounts): Ditto.
* pinfo.cc (pinfo::init): Pass pointer to shloc.
* shared.cc (shared_mem_inited): New variable.
(open_shared): Crate function wrapper for common use case.
(open_shared): Accommodate change to fifth argument to a pointer.
(shared_info::initialize): Remove spinlock test. Simplify function. Move
get_session_parent_dir call back here.
(memory_init): Protect global shared settings with shared_mem_inited spinlock.
Move get_session_parent_dir call to shared_info::initialize.
Diffstat (limited to 'winsup/cygwin/fhandler_process.cc')
-rw-r--r-- | winsup/cygwin/fhandler_process.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler_process.cc b/winsup/cygwin/fhandler_process.cc index fa8aff7c6..10610541f 100644 --- a/winsup/cygwin/fhandler_process.cc +++ b/winsup/cygwin/fhandler_process.cc @@ -897,7 +897,6 @@ format_process_mounts (void *data, char *&destbuf) if (p->pid != myself->pid) { WCHAR sid_string[UNLEN + 1] = L""; /* Large enough for SID */ - shared_locations sl = SH_JUSTOPEN; cygsid p_sid; @@ -905,7 +904,7 @@ format_process_mounts (void *data, char *&destbuf) return 0; p_sid.string (sid_string); u_shared = (user_info *) open_shared (sid_string, USER_VERSION, u_hdl, - sizeof (user_info), sl, + sizeof (user_info), SH_JUSTOPEN, &sec_none_nih); if (!u_shared) return 0; |