diff options
author | Robert Collins <rbtcollins@hotmail.com> | 2002-03-05 12:58:24 +0000 |
---|---|---|
committer | Robert Collins <rbtcollins@hotmail.com> | 2002-03-05 12:58:24 +0000 |
commit | 241a7c5a8c8662623c04163c5132ecbf5b417b3b (patch) | |
tree | bc9947c17f541e7561485b081e19e944032b26aa /winsup/cygserver | |
parent | ad2864f4c8dd5157dad2011483c4076416a80f4c (diff) | |
download | cygnal-241a7c5a8c8662623c04163c5132ecbf5b417b3b.tar.gz cygnal-241a7c5a8c8662623c04163c5132ecbf5b417b3b.tar.bz2 cygnal-241a7c5a8c8662623c04163c5132ecbf5b417b3b.zip |
2002-03-05 Robert Collins <rbtcollins@hotmail.com>
* cygserver_transport_pipes.cc (transport_layer_pipes::transport_layer_pipes):
Always init - until static members work correctly.
* shm.cc (shmget): Initialize the security descriptor - thanks Corinna!
* include/sys/ipc.h: Make the ipc control constants partitioned off from the sem
control constants.
Diffstat (limited to 'winsup/cygserver')
-rw-r--r-- | winsup/cygserver/transport_pipes.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygserver/transport_pipes.cc b/winsup/cygserver/transport_pipes.cc index 5b5a017c9..7a43d8da0 100644 --- a/winsup/cygserver/transport_pipes.cc +++ b/winsup/cygserver/transport_pipes.cc @@ -29,8 +29,13 @@ #define debug_printf if (DEBUG) printf #endif +//SECURITY_DESCRIPTOR transport_layer_pipes::sd; +//SECURITY_ATTRIBUTES transport_layer_pipes::sec_none_nih, transport_layer_pipes::sec_all_nih; +//bool transport_layer_pipes::inited = false; + transport_layer_pipes::transport_layer_pipes (HANDLE new_pipe) { + inited = false; //FIXME: allow inited, sd, all_nih_.. to be static members pipe = new_pipe; if (inited != true) init_security(); @@ -38,13 +43,13 @@ transport_layer_pipes::transport_layer_pipes (HANDLE new_pipe) transport_layer_pipes::transport_layer_pipes () { + inited = false; pipe = NULL; strcpy(pipe_name, "\\\\.\\pipe\\cygwin_lpc"); if (inited != true) init_security(); } - void transport_layer_pipes::init_security() { |