summaryrefslogtreecommitdiff
path: root/pr/src/md/os2
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>1998-12-09 16:37:26 +0000
committerwtc%netscape.com <devnull@localhost>1998-12-09 16:37:26 +0000
commit7fe2fa921cdd716afa2d5c54f7e8de94879f0993 (patch)
tree1873fd232abdcc7b08d6c023daa8de7af4b59dae /pr/src/md/os2
parent44b2a1483226959769305464c0e11ee7a0851503 (diff)
downloadnspr-hg-7fe2fa921cdd716afa2d5c54f7e8de94879f0993.tar.gz
This checkin consists on three things:
1. File descriptor inheritance 2. Set thread->md.handle on Win32 for attached native threads. 3. Miscellaneous code cleanup.
Diffstat (limited to 'pr/src/md/os2')
-rw-r--r--pr/src/md/os2/os2thred.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/pr/src/md/os2/os2thred.c b/pr/src/md/os2/os2thred.c
index ecc25e57..41947c0d 100644
--- a/pr/src/md/os2/os2thred.c
+++ b/pr/src/md/os2/os2thred.c
@@ -60,8 +60,8 @@ _PR_MD_EARLY_INIT()
#endif
}
-PR_IMPLEMENT(void)
-_PR_MD_INIT_PRIMORDIAL_THREAD(PRThread *thread)
+static void
+_pr_SetThreadMDHandle(PRThread *thread)
{
PTIB ptib;
PPIB ppib;
@@ -76,8 +76,9 @@ _PR_MD_INIT_PRIMORDIAL_THREAD(PRThread *thread)
PR_IMPLEMENT(PRStatus)
_PR_MD_INIT_THREAD(PRThread *thread)
{
- if (thread->flags & _PR_PRIMORDIAL)
- _PR_MD_INIT_PRIMORDIAL_THREAD(thread);
+ if (thread->flags & (_PR_PRIMORDIAL | _PR_ATTACHED)) {
+ _pr_SetThreadMDHandle(thread);
+ }
/* Create the blocking IO semaphore */
_PR_MD_NEW_SEM(&thread->md.blocked_sema, 1);