[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
POSIX signal
- Date: Wed, 17 May 2006 08:19:00 -0500
- From: joel.sherrill at oarcorp.com (Joel Sherrill)
- Subject: POSIX signal
Sebastien BARRE wrote:
>Hello,
>
>I'm porting existing application on RTEMS and need to manage processor
>exceptions (68k) buy sending POSIX like signals to my tasks.
>Here is my questions :
>Is it possible to use POSIX signal (sending with kill or ptread_kill )
>while my tasks are creating with "rtems_task_create"?
>
>
Yes.
>Can I use "kill" or "pthread_kill" in an exception handler to send
>exception signal like SIGBUS, SIGILL, SIGFPE,... to my applications tasks
>?
>
>
>
Yes.
POSIX has to be enabled and the Classic API tasks have to have their signal
mask changed from the default. POSIX threads and Classic API takss have
different default signal masks. By default, Classic API tasks do not
have any
signals enabled because the API used to create them doesn't know anything
about POSIX signals. If you as an application programmer want to handle
POSIX signals from a Classic API task, you just need to enable them.
--joel
>-
>S?bastien Barr?
>Recherche et D?veloppement
>SDEL Contr?le Commande
>D2A - Rue Nungesser et Coli
>44860 Saint Aignan de Grand Lieu
>FRANCE
>T?l : 02 40 84 50 88
>Fax : 02 40 84 51 10
>
>