4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-18 12:29:32 +08:00

* pinfo.cc (pinfo_basic::pinfo_basic): Fix formatting. Set uid and gid

to default values to accommodate early initialization of shared user
	info.  Add comment.
This commit is contained in:
Corinna Vinschen 2011-12-23 17:12:10 +00:00
parent 6d55bc5c8a
commit 9ffe887f6c
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2011-12-23 Corinna Vinschen <vinschen@redhat.com>
* pinfo.cc (pinfo_basic::pinfo_basic): Fix formatting. Set uid and gid
to default values to accommodate early initialization of shared user
info. Add comment.
2011-12-22 Corinna Vinschen <vinschen@redhat.com>
* spawn.cc (child_info_spawn::worker): Add CREATE_BREAKAWAY_FROM_JOB

View File

@ -36,10 +36,13 @@ public:
pinfo_basic();
};
pinfo_basic::pinfo_basic()
pinfo_basic::pinfo_basic ()
{
pid = dwProcessId = GetCurrentProcessId ();
GetModuleFileNameW (NULL, progname, sizeof (progname));
/* Default uid/gid are needed very early to initialize shared user info. */
uid = ILLEGAL_UID;
gid = UNKNOWN_GID;
}
pinfo_basic myself_initial NO_COPY;