Subject: Re: scheduler activations problem ?
To: Mihai CHELARU <kefren@netbastards.org>
From: Gary Duzan <gary@duzan.org>
List: current-users
Date: 10/20/2003 08:25:31
In Message <200310201439.13439.kefren@netbastards.org> ,
Mihai CHELARU <kefren@netbastards.org> wrote:
=> for(;;) {
=> FD_ZERO(&fs);
=> FD_SET(s, &fs);
=> select(s + 1, &fs, NULL, NULL, NULL);
Try checking the return value of this select() call for errors.
=> if (pthread_create(&pt, NULL, persocket, (void *) (&s)))
=> perror("pthread_create");
=> if (pthread_detach(pt))
=> perror("pthread_detach");
=>// pth_yield(NULL);
=> }
Gary Duzan