[uClinux-dev] Must reinstall itself in a signal handler in uClinux 2.4??

Paul McGougan paul.mcgougan at braintree.com.au
Sat Mar 29 08:20:47 EST 2003


----- Original Message -----
From: Paul
To: uclinux-dev at uclinux.org
Sent: Saturday, March 29, 2003 10:50 PM
Subject: [uClinux-dev] Must reinstall itself in a signal handler in uClinux
2.4??

>If I don't reinstall signal handler in a signal handler itself ,the
application
> will be terminated as soon as I send it SIGUSR1 signal the second time.

This is correct operation for signal handling when your handler is installed
using the signal function call. Upon execution it resets to SIG_DFL (default
behaviour).

If you want to install a "persistant" signal handler, use the sigaction
system call instead.

Paul McGougan
Braintree Communications





More information about the uClinux-dev mailing list