Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2000-12

Linux signalink

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mirek a Marcela Novákovi

Hi,

I want to ignore signal SIGCHLD - to avoid "zombie" process creation. Can some help me how to? I've found it in man-pages but it uses sig(SIGCHLD,SIG_IGN) - in fpc definitions, there is incompatibility in type,expected is SIGNALHANDLER instead of longint ...

Thanx, Mirek Novak.

Reply by email

Peter Vreman
Show quoted text 6 lines
Hi, I want to ignore signal SIGCHLD - to avoid "zombie" process creation. Can some help me how to? I've found it in man-pages but it uses sig(SIGCHLD,SIG_IGN) - in fpc definitions, there is incompatibility in type,expected is SIGNALHANDLER instead of longint ...

try it with a typecast:

signal(SIGCHLD,SIGNALHANDLER(SIG_IGN))

Reply by email