summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/dcrt0.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2008-12-20 17:32:31 +0000
committerChristopher Faylor <me@cgf.cx>2008-12-20 17:32:31 +0000
commit9ac421686a3a77943e12c1f7399ff79d06619a3d (patch)
treebb68435b0baa447b263a9c2a2b0b9d5e9e766a0e /winsup/cygwin/dcrt0.cc
parente9982f2a2b1b43489985b071adc86c90ccbbfcb0 (diff)
downloadcygnal-9ac421686a3a77943e12c1f7399ff79d06619a3d.tar.gz
cygnal-9ac421686a3a77943e12c1f7399ff79d06619a3d.tar.bz2
cygnal-9ac421686a3a77943e12c1f7399ff79d06619a3d.zip
* pinfo.h (pinfo::thisproc): Declare. Rename from set_myself.
* pinfo.cc (pinfo::thisproc): Define. Rename from set_myself. Set procinfo to NULL to avoid confusing subsequent init. (pinfo_init): Accommodate set_myself -> pinfo::thisproc rename. * dcrt0.cc (child_info_fork::handle_fork): Ditto. (child_info_spawn::handle_spawn): Ditto.
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r--winsup/cygwin/dcrt0.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc
index ccdedc6c0..961e60567 100644
--- a/winsup/cygwin/dcrt0.cc
+++ b/winsup/cygwin/dcrt0.cc
@@ -626,7 +626,7 @@ child_info_fork::handle_fork ()
{
cygheap_fixup_in_child (false);
memory_init ();
- set_myself (NULL);
+ myself.thisproc (NULL);
myself->uid = cygheap->user.real_uid;
myself->gid = cygheap->user.real_gid;
@@ -657,7 +657,7 @@ child_info_spawn::handle_spawn ()
!DuplicateHandle (hMainProc, moreinfo->myself_pinfo, hMainProc, &h, 0,
FALSE, DUPLICATE_SAME_ACCESS | DUPLICATE_CLOSE_SOURCE))
h = NULL;
- set_myself (h);
+ myself.thisproc (h);
__argc = moreinfo->argc;
__argv = moreinfo->argv;
envp = moreinfo->envp;