Changes from 5.2.1 to 5.3 (theads / signal handling)
Jose Marcio Martins da Cruz
Jose-Marcio.Martins at ensmp.fr
Tue Jan 31 04:17:17 PST 2006
Julian Elischer wrote:
> Jose Marcio Martins da Cruz wrote:
...
>> This application runs fine under Solaris (four years long now).
>
> Each implementation has different side-effects
Well, Solaris 10 implements fork1 and forkall. forkall man page have many
warnings about this issue, but as they implemented, they surely worked hard to
minimize side-effects.
> On FreeBSD 6, try the libthr() threading library.
I turned my code back to as it was before : instead of using a threaded signal
handler, I'm using again a handler defined by sigaction. This works fine with
libpthread, but not with libthr on a 5.3 machine.
I'm doing some more changes, as before defining signal handling, the application
"daemonizes" : forks twice, close and redirect stdin, stdout, stderr, ... and
so. Removing this, the application beguns to work but there are still problems.
So, I'm getting a test machine to install FreeBSD 6 and debug it.
But, what's the relations between pre and after 5.3 libpthreads ? What about
libptl2 and libthr ?
Again, thanks for you answers
Jose-Marcio
--
---------------------------------------------------------------
Jose Marcio MARTINS DA CRUZ Tel. :(33) 01.40.51.93.41
Ecole des Mines de Paris http://j-chkmail.ensmp.fr
60, bd Saint Michel http://www.ensmp.fr/~martins
75272 - PARIS CEDEX 06 mailto:Jose-Marcio.Martins at ensmp.fr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3565 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.freebsd.org/pipermail/freebsd-threads/attachments/20060131/40aac641/smime.bin
More information about the freebsd-threads
mailing list