diff options
author | Christopher Faylor <me@cgf.cx> | 2000-08-23 14:56:28 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-08-23 14:56:28 +0000 |
commit | e1cf4ae80c43bd50e0e8f156d61d948d2947d295 (patch) | |
tree | 6ad8ee4a9dc7d7439d949a6531b050f74d00bc83 /winsup/cygwin/pinfo.h | |
parent | c19e7ba723bb4246a375b41678c2b730718d00e4 (diff) | |
download | newlib-e1cf4ae80c43bd50e0e8f156d61d948d2947d295.zip newlib-e1cf4ae80c43bd50e0e8f156d61d948d2947d295.tar.gz newlib-e1cf4ae80c43bd50e0e8f156d61d948d2947d295.tar.bz2 |
Revert previous erroneous checkin.
Diffstat (limited to 'winsup/cygwin/pinfo.h')
-rw-r--r-- | winsup/cygwin/pinfo.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/winsup/cygwin/pinfo.h b/winsup/cygwin/pinfo.h index f846598..b8ee914 100644 --- a/winsup/cygwin/pinfo.h +++ b/winsup/cygwin/pinfo.h @@ -117,7 +117,7 @@ class pinfo _pinfo *child; int destroy; public: - void init (pid_t n, DWORD create = 0, HANDLE h = NULL); + void init (pid_t n, DWORD create = 0); pinfo () {} pinfo (_pinfo *x): child (x) {} pinfo (pid_t n) {init (n);} @@ -127,7 +127,7 @@ public: if (h) { UnmapViewOfFile (child); - ForceCloseHandle1 (h, pinfo_shared_handle); + CloseHandle (h); h = NULL; } } @@ -145,9 +145,7 @@ public: int operator == (char *x) const {return (char *) child == x;} _pinfo *operator * () const {return child;} operator _pinfo * () const {return child;} - // operator bool () const {return (int) h;} void remember () {destroy = 0; proc_subproc (PROC_ADDCHILD, (DWORD) this);} - HANDLE shared_handle () {return h;} }; #define ISSTATE(p, f) (!!((p)->process_state & f)) @@ -170,7 +168,5 @@ cygwin_pid (pid_t pid) { return (pid_t) (os_being_run == winNT) ? pid : -(int) pid; } - -void __stdcall pinfo_init (BYTE *); -void __stdcall set_myself (pid_t pid, HANDLE h = NULL); +void __stdcall pinfo_init (PBYTE); extern pinfo myself; |