Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: Miles_Krivoshia@transarc.com
Subject: Re: HELP: Question on DCE Threads
Date: Thu, 27 Oct 1994 18:26:19 -0400	[thread overview]
Message-ID: <Eig2Y=SSMV1ZE6mGNj@transarc.com> (raw)
In-Reply-To: <androidCyC7rD.MKv@netcom.com>

android@netcom.com (Pramod Kalapa) writes:
> where open-file is the function to open the file. The creation routine
> returns 0, which I assume is the valid value for a successful creation.
> However, the thread doesn't enter the function "open_file". I've stepped
> through the code with dbx and it just exits out of main. I've linked 
> with the thread-safe library libc_r.a
> Can someone please e-mail me as to what I might be doing wrong ?

Yes, while the new thread starts, them main thread keeps running, and
when main exits, the whole process may end (implementation dependent).
Try calling pthread_join() in main.

-Miles



  reply	other threads:[~1994-10-27 22:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-10-27 15:16 HELP: Question on DCE Threads Pramod Kalapa
1994-10-27 22:26 ` Miles_Krivoshia [this message]
1994-10-28 17:24 ` Brad Daniels
1994-10-31 14:37 ` Paul Roberts
1994-11-09 13:26 ` Rich Salz
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox