Re: Question about pthread

2001-10-05 Thread Terry Lambert
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

Re: Question about pthread

2001-10-03 Thread Chad David
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

Re: Question about pthread

2001-10-03 Thread Chris Costello
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. -- +

Re: Question about pthread

2001-10-03 Thread Chris Costello
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) {

Question about pthread

2001-10-03 Thread Oleg Golovanov
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 -