Réf. : RE: [LCP]Signal handler question

David Filion filioda at videotron.com
Thu Oct 4 22:58:18 UTC 2001





But what about when I jump out of the signal handler, am I still in the signal
thread or am I back the normal thread?





Andrew Weaver <Andrew.Weaver at tecnomen.fi> on 2001-10-04 02:10:35

Veuillez répondre à linuxcprogramming at lists.linux.org.au

Pour :    "'linuxcprogramming at lists.linux.org.au'"
      <linuxcprogramming at lists.linux.org.au>
cc :   (ccc : David Filion/VSI/GVL)
Objet :   RE: [LCP]Signal handler question


-------------- next part --------------

Basically, once your sig handler is hit, you are in the signal "thread".
Anything you do before returning is under the rules/restrictions of signal
handling.

> -----Original Message-----
> From:   David Filion [SMTP:filioda at videotron.com]
> Sent:   Wednesday, October 03, 2001 7:41 PM
> To:     linuxcprogramming at lists.linux.org.au
> Subject:     [LCP]Signal handler question
>
>
>
>
> I'm working a program that needs to do a "clean" shutdown when it catches
> certain signals.  (One of the items is to disconnect cleanly from a DB.)
> Now,
> because I'm limited in the commands/calls I can use in a signal handler I
> was
> thinking of using a siglongjmp to return to main() then call my cleanup
> function/exit routine.    Does anyone know if I'll still be limited to the
> "safe" list of signal commands after I jump or will I be able to use the
> full
> set again in my cleanup function?
>
>
>
> _______________________________________________
> This is the Linux C Programming List
> :  http://lists.linux.org.au/listinfo/linuxcprogramming List
_______________________________________________
This is the Linux C Programming List
:  http://lists.linux.org.au/listinfo/linuxcprogramming List






More information about the linuxCprogramming mailing list