diff options
author | Christopher Faylor <me@cgf.cx> | 2008-12-20 20:32:31 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2008-12-20 20:32:31 +0300 |
commit | 9ac421686a3a77943e12c1f7399ff79d06619a3d (patch) | |
tree | bb68435b0baa447b263a9c2a2b0b9d5e9e766a0e /winsup/cygwin/pinfo.h | |
parent | e9982f2a2b1b43489985b071adc86c90ccbbfcb0 (diff) |
* 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/pinfo.h')
-rw-r--r-- | winsup/cygwin/pinfo.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/winsup/cygwin/pinfo.h b/winsup/cygwin/pinfo.h index 4f7f79bf6..5351595e3 100644 --- a/winsup/cygwin/pinfo.h +++ b/winsup/cygwin/pinfo.h @@ -112,8 +112,6 @@ public: bool __stdcall exists () __attribute__ ((regparm (1))); const char *_ctty (char *); - friend void __stdcall set_myself (HANDLE); - /* signals */ HANDLE sendsig; HANDLE exec_sendsig; @@ -147,6 +145,7 @@ public: pinfo (_pinfo *x): procinfo (x), hProcess (NULL) {} pinfo (pid_t n) : rd_proc_pipe (NULL), hProcess (NULL) {init (n, 0, NULL);} pinfo (pid_t n, DWORD flag) : rd_proc_pipe (NULL), hProcess (NULL), waiter_ready (0), wait_thread (NULL) {init (n, flag, NULL);} + void thisproc (HANDLE) __attribute__ ((regparm (2))); void release (); int wait () __attribute__ ((regparm (1))); ~pinfo () @@ -222,7 +221,6 @@ cygwin_pid (pid_t pid) } void __stdcall pinfo_init (char **, int); -void __stdcall set_myself (HANDLE h); extern pinfo myself; #define _P_VFORK 0 |