diff options
author | Christopher Faylor <me@cgf.cx> | 2000-10-19 00:53:25 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-10-19 00:53:25 +0000 |
commit | 4b70969a0838ca2a1fb11daf317c11318469f513 (patch) | |
tree | df84cb6a0bf0cc3d6c3bd02179897f093f0d7090 /winsup/cygwin/pinfo.cc | |
parent | 6e8f36bc43a54e6d6d21528acfe6f92d07781a9d (diff) | |
download | cygnal-4b70969a0838ca2a1fb11daf317c11318469f513.tar.gz cygnal-4b70969a0838ca2a1fb11daf317c11318469f513.tar.bz2 cygnal-4b70969a0838ca2a1fb11daf317c11318469f513.zip |
* sigproc.h (sigthread): Eliminate locking for now since per thread signalling
is not available.
* dcrt0.cc (sigthread::init): Ditto.
(dll_crt0_1): Move set_process_privileges call (temporarily?) to pinfo_init.
(pinfo_init): Only call set_process_privileges when allow_ntsec.
Diffstat (limited to 'winsup/cygwin/pinfo.cc')
-rw-r--r-- | winsup/cygwin/pinfo.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc index 21aa0fb8d..ce1ebe52f 100644 --- a/winsup/cygwin/pinfo.cc +++ b/winsup/cygwin/pinfo.cc @@ -109,6 +109,11 @@ pinfo_init (char **envp, int envc) environ_init (NULL, 0); /* call after myself has been set up */ } + /* Allow backup semantics. It's better done only once on process start + instead of each time a file is opened. */ + if (allow_ntsec) + set_process_privileges (); + debug_printf ("pid %d, pgid %d", myself->pid, myself->pgid); } |