[fpc-pascal] problem with threads and backgrounding, fpc 2.1.3 arm native

Micha Nelissen micha at neli.hopto.org
Tue Apr 3 21:50:32 CEST 2007


Luca Olivetti wrote:
> synchronize and critical sections, c library with callbacks to pascal,
> etc.) is working flawlessly in the foreground, but it segfaults if I try
> to background it (or try to use fpFork), and this is a problem since I
> want to write a daemon (i can use screen though if that isn't possible).

Backgrounding is not the same as forking. Backgrounding is using the
shell's job control (and sends some signal(s) to the process), forking
is what the program does itself. Can you list an example that crashes
with fpfork, and give an strace with it ?

Micha



More information about the fpc-pascal mailing list