Cygwin: spawn: create and maintain winpid symlinks

- If the execve'ed process is a non-Cygwin process, we have to
  create the matching winpid symlink and remove the old one
  ourselves.

- If we spawn a child, the winpid symlink has to be maintained
  by the child process, otherwise it disappears if the parent
  process exits.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen
2019-02-02 20:01:41 +01:00
parent d6cf2b781f
commit 3a3934252c
2 changed files with 26 additions and 5 deletions

View File

@@ -204,6 +204,7 @@ public:
}
#endif
HANDLE shared_handle () {return h;}
HANDLE shared_winpid_handle () {return winpid_hdl;}
void set_acl ();
friend class _pinfo;
friend class winpids;