Re: Changes from 5.2.1 to 5.3 (theads / signal handling)

2006-01-26 Thread Julian Elischer
Jose Marcio Martins da Cruz wrote: Julian Elischer wrote: Jose Marcio Martins da Cruz wrote: So, if I understood, the better I can do is, instead of letting the child follow a different path after the fork, he shall better do an exec of another thing and start a clean process... of

Re: Changes from 5.2.1 to 5.3 (theads / signal handling)

2006-01-26 Thread Jason Evans
On Jan 26, 2006, at 12:55 AM, Jose Marcio Martins da Cruz wrote: Can you point me a good doc about threads, signals, and such kind of things in FreeBSD context ? David Butenhof's book, "Programming with POSIX Threads", includes a good discussion of signals in the context of pthreads. How t

Re: Changes from 5.2.1 to 5.3 (theads / signal handling)

2006-01-26 Thread Julian Elischer
Jose Marcio Martins da Cruz wrote: Hello, Julian Elischer wrote: Jose Marcio Martins da Cruz wrote: also, does the child do an exec() after forking? No. The child gets out the father loop and calls another initialisation function. The Posix spec says that after

Re: Changes from 5.2.1 to 5.3 (theads / signal handling)

2006-01-26 Thread Jose Marcio Martins da Cruz
Hello, Julian Elischer wrote: > Jose Marcio Martins da Cruz wrote: >>> also, does the child do an exec() after forking? >> >> No. The child gets out the father loop and calls another >> initialisation function. > > The Posix spec says that after a fork(0 teh child must do almost nothing > befor

Re: Changes from 5.2.1 to 5.3 (theads / signal handling)

2006-01-25 Thread Julian Elischer
Julian Elischer wrote: Jose Marcio Martins da Cruz wrote: Julian Elischer wrote: Jose Marcio Martins da Cruz wrote: a new threading library. H. Here are my compile flags : CPPFLAGS : only some -I and -D flags CFLAGS : -D_THREAD_SAFE -pthread LDFLAGS : -lmilter -lkvm -lm -l

Re: Changes from 5.2.1 to 5.3 (theads / signal handling)

2006-01-25 Thread Julian Elischer
Jose Marcio Martins da Cruz wrote: Julian Elischer wrote: Jose Marcio Martins da Cruz wrote: a new threading library. H. Here are my compile flags : CPPFLAGS : only some -I and -D flags CFLAGS : -D_THREAD_SAFE -pthread LDFLAGS : -lmilter -lkvm -lm -lpthread have you tried 6

Re: Changes from 5.2.1 to 5.3 (theads / signal handling)

2006-01-25 Thread Jose Marcio Martins da Cruz
Julian Elischer wrote: Jose Marcio Martins da Cruz wrote: a new threading library. H. Here are my compile flags : CPPFLAGS : only some -I and -D flags CFLAGS : -D_THREAD_SAFE -pthread LDFLAGS : -lmilter -lkvm -lm -lpthread have you tried 6.0? Yes. It presents the same behaviour.

Re: Changes from 5.2.1 to 5.3 (theads / signal handling)

2006-01-25 Thread Julian Elischer
Jose Marcio Martins da Cruz wrote: Hello, I have a problem with an application I wrote. It works fine under Solaris, Linux, and FreeBSD till release 5.2.1. Under FreeBSD 5.3 and newers I have problems. The application is constituted by two processes : a supervisor and modules. The supervisor

Changes from 5.2.1 to 5.3 (theads / signal handling)

2006-01-25 Thread Jose Marcio Martins da Cruz
Hello, I have a problem with an application I wrote. It works fine under Solaris, Linux, and FreeBSD till release 5.2.1. Under FreeBSD 5.3 and newers I have problems. The application is constituted by two processes : a supervisor and modules. The supervisor forks and become a module when it sh