This is the mail archive of the
cygwin-cvs@cygwin.com
mailing list for the Cygwin project.
src/winsup/cygwin ChangeLog cygserver.cc cygse ...
- To: cygwin-cvs at sources dot redhat dot com
- Subject: src/winsup/cygwin ChangeLog cygserver.cc cygse ...
- From: rbcollins at sourceware dot cygnus dot com
- Date: 1 Oct 2001 02:49:24 -0000
CVSROOT: /cvs/src
Module name: src
Branch: cygwin_daemon
Changes by: rbcollins@sources.redhat.com 2001-09-30 19:49:21
Modified files:
winsup/cygwin : ChangeLog cygserver.cc cygserver_process.cc
cygserver_shm.cc cygserver_shm.h
cygserver_transport_pipes.cc
winsup/cygwin/include/cygwin: cygserver.h cygserver_process.h
Log message:
Mon Oct 1 12:38:00 2001 Robert Collins <rbtcollins@hotmail.com>
* cygserver.cc (client_request::serve): New function.
* cygserver_process.cc: Inlude <pthread.h> for pthread_once.
(process_cache::process_cache): Initialise a crtiical section for write access.
(process_cache::process): Use the critical section. Also add missing entries to
the cache.
(do_process_init): New function to initalise class process static variables.
(process::process): Ensure that the process access critical section is initialised.
(process::handle): Close the handle of old process's when they have terminated
and we are returning the handle for a process with the same pid.
* cygserver_shm.cc: Run indent.
Include cygserver_process.h to allow process cache functionality.
(client_request_shm_get::serve): New parameter for process cache support.
Use the process cache, not OpenProcess to get a handle to the originating process.
Fix a handle leak with token_handle.
* cygserver_shm.h (class client_request_shm_get): Update ::serve for process cache support.
* cygserver_transport_pipes.cc: Redefine debug_printf to be conditional on DEBUG.
* include/cygwin/cygserver.h: Do not implement client_request::serve in the header.
* include/cygwin/cygserver_process.h (class process_cache): Add a write access cri
tical section to prevent races when requests from a multithreaded application arrive.
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=src&only_with_tag=cygwin_daemon&r1=1.915.2.9&r2=1.915.2.10
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/cygserver.cc.diff?cvsroot=src&only_with_tag=cygwin_daemon&r1=1.1.2.3&r2=1.1.2.4
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/cygserver_process.cc.diff?cvsroot=src&only_with_tag=cygwin_daemon&r1=1.1.2.1&r2=1.1.2.2
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/cygserver_shm.cc.diff?cvsroot=src&only_with_tag=cygwin_daemon&r1=1.1.2.2&r2=1.1.2.3
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/cygserver_shm.h.diff?cvsroot=src&only_with_tag=cygwin_daemon&r1=1.1.2.2&r2=1.1.2.3
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/cygserver_transport_pipes.cc.diff?cvsroot=src&only_with_tag=cygwin_daemon&r1=1.1.2.2&r2=1.1.2.3
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/include/cygwin/cygserver.h.diff?cvsroot=src&only_with_tag=cygwin_daemon&r1=1.1.2.2&r2=1.1.2.3
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/include/cygwin/cygserver_process.h.diff?cvsroot=src&only_with_tag=cygwin_daemon&r1=1.1.2.1&r2=1.1.2.2