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

Micha Nelissen micha at neli.hopto.org
Tue Apr 3 23:41:17 CEST 2007


Luca Olivetti wrote:
>> Backgrounding is not the same as forking. 
> 
> I (vaguely) understand the difference, but I think (probably mistakenly)
> that the problems are related.

I'm not saying the problems are not related; they may be. It's just
important to know there is a difference.

> the example daemon.pp, for example, crashes right away, strace doesn't
> seem very useful to me:
> 
> luca at lspro:~/fork$ strace -f ./daemon
> execve("./daemon", ["./daemon"], [/* 22 vars */]) = 0
> syscall: unknown syscall trap 0x00008000

There is a patch on the internet for strace, to skip this error. Google
for strace syscall trap.

> A simple program that just repeatedly sleeps after the fork, dies as
> soon as it receives any signal (e.h HUP, USR1).

Ok, this will be the same problem as with backgrounding in the shell.

Micha



More information about the fpc-pascal mailing list