OSDN Git Service

* fork.cc (fork_parent): Use sec_user_nih to control process/thread
authorcgf <cgf>
Tue, 19 Feb 2002 05:58:44 +0000 (05:58 +0000)
committercgf <cgf>
Tue, 19 Feb 2002 05:58:44 +0000 (05:58 +0000)
commitbfc42d6256bde4898e2fcf144ccfaa831d7057fc
treec8ba9939c62f4ec9b5dfcfed53b5cce4c8fd9557
parent8efecdbf8b39f147e58b1b5b8c6fc4d40745844f
* fork.cc (fork_parent): Use sec_user_nih to control process/thread
inheritance/permission.
* spawn.cc (spawn_guts): Ditto.
* security.cc (create_token): Initialize token so that it is not tested for
bogus value later.  Use sec_user to control process/thread creation.
* security.h (__sec_user): Rename declaration from sec_user.
(sec_user_nih): Declare here as inline function wrapper for __sec_user.
(sec_user): Ditto.
* sigproc.cc (czombies): Allocate a character array for zombies to avoid
constructor overhead
(extremely hackish, I know).
(cpchildren): Ditto.
(pchildren): New define.
(zombies): Ditto.
(getsem): Use sec_user_nih to control semaphore inheritance/permission.
winsup/cygwin/ChangeLog
winsup/cygwin/fork.cc
winsup/cygwin/security.cc
winsup/cygwin/security.h
winsup/cygwin/shared.cc
winsup/cygwin/sigproc.cc
winsup/cygwin/spawn.cc