lkml.org 
[lkml]   [2001]   [Mar]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subjectfork and pthreads
Date
I am having a strange problem.

I have a big daemon program to which I am trying to add multi-threading.

At the begining, after some sanity check, this program does a double fork to
create a deamon.

After that it listens for the client on the port. Whenever the client
connects, it creates a new thread using
pthread-create.

The problem is, the thread (main thread) calling pthread-create hangs
indefinetely in __sigsuspend. The newly created thread however, runs
normally to completion.

I wrote few test programs trying to simulate this behaviour but all of them
worked as expected.

Does anyone know, what's going on ??

Nitin Sane
sane_purushottam@emc.com
*(508)382-7319

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:17    [W:0.067 / U:0.344 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site