no tengo el c�digo fuente disponible, ya que el pseudo-objeto est� en
Informix.


-----Mensaje original-----
De: Marcelo E. Magallon <[EMAIL PROTECTED]>
Para: Linux List CR <[EMAIL PROTECTED]>
Fecha: Martes 2 de Abril de 2002 10:12 AM
Asunto: Re: USO DE TECLAS DE FUNCI�N EN PROGRAMA EN LINUX


>>> Eduardo Oviedo Ocampo <[EMAIL PROTECTED]> writes:
>
> > c�mo se realiza eso que usted dice?
>
> Uhm... tal vez entend� el problema mal.  El c�digo fuente del programa
> problem�tico est� disponible, �cierto?  �Y el programa instala un
> signal handler para SIGINT?  �Y eso lo hace c�mo?
>
> > > Use sigaction, es menos problem�tico.
>
> #include <signal.h>
>
> void sigint_handler(int signum)
> {
> printf("Mar�a ten�a un corderito\n");
> }
>
> int main(int argc, char* argv[])
> {
> struct sigaction new_action;
>
> new_action.sa_handler = termination_handler;
> sigemptyset (&new_action.sa_mask);
> new_action.sa_flags = 0;
>
> sigaction (SIGINT, &new_action, NULL);
>
> ...
>
> return 0;
> }
>
> $ man sigaction
>
>
>--
>�Desea desuscribirse?  Escriba a [EMAIL PROTECTED] con el
tema
>'unsubscribe'.  M�s informaci�n: http://www.linux.or.cr/listas
>



-- 
�Desea desuscribirse?  Escriba a [EMAIL PROTECTED] con el tema
'unsubscribe'.  M�s informaci�n: http://www.linux.or.cr/listas

Responder a