Oleg Golovanov wrote:
>
> Dear Sirs:
>
> I am using FreeBSD-2.2.8 and after calling pthread_create()
> my programs get sigfault (SIGSEGV) and exited with core dump.
>
> I should like to ask if somebody know the solve of this problem.
> My example of using pthread is included below.
>
> I ask t
On Thu, Oct 04, 2001 at 04:40:07AM +0800, Oleg Golovanov wrote:
> Dear Sirs:
>
> I am using FreeBSD-2.2.8 and after calling pthread_create()
> my programs get sigfault (SIGSEGV) and exited with core dump.
>
> I should like to ask if somebody know the solve of this problem.
> My example of using
On Wednesday, October 03, 2001, Chris Costello wrote:
>Because you're passing the _address_ of `confd', not the
Er, sorry, `connfd' _is_ the address to a value (it's a
pointer). But you're still passing an address, and I believe
what I posted will solve the problem.
--
+
On Thursday, October 04, 2001, Oleg Golovanov wrote:
> static void *coms(void *arg)
> {
> pthread_detach(pthread_self());
> write((int)arg, "Test", sizeof("test"));
> close((int)arg);
> return(NULL);
> }
For starters, this function should be rewritten as
static void *coms(void *arg)
{
Dear Sirs:
I am using FreeBSD-2.2.8 and after calling pthread_create()
my programs get sigfault (SIGSEGV) and exited with core dump.
I should like to ask if somebody know the solve of this problem.
My example of using pthread is included below.
I ask to answer me directly on my e-mail.
Oleg
-
5 matches
Mail list logo