if (GetHandleInformation((HANDLE)fd->secret->md.osfd, &flags)) { if (flags & HANDLE_FLAG_INHERIT) { fd->secret->inheritable = _PR_TRI_TRUE; } }
fd->secret->inheritable = _PR_TRI_UNKNOWN; } else { fd->secret->inheritable = _PR_TRI_FALSE;
_PR_MD_INIT_FD_INHERITABLE(PRFileDesc *fd, PRBool imported){    DWORD flags;    /*     * On NT, fd->secret->inheritable is used to decide whether     * we can associate the file handle with the I/O completion     * port, so we must not set it to _PR_TRI_UNKNOWN.     */    fd->secret->inheritable = _PR_TRI_FALSE;    if (imported) {        if (GetHandleInformation((HANDLE)fd->secret->md.osfd, &flags)) {            if (flags & HANDLE_FLAG_INHERIT) {                fd->secret->inheritable = _PR_TRI_TRUE;            }       }    }}