Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 05 Mar 2008 15:26:33 -0600
From:      Martin McCormick <martin@dc.cis.okstate.edu>
To:        freebsd-questions@freebsd.org
Subject:   SIGHUP and Program Flow in a 6.2 Application
Message-ID:  <200803052126.m25LQX7J035593@m.it.okstate.edu>

next in thread | raw e-mail | index | archive | help
	A SIGHUP signal to a running process needs a signal
handler like

signal( SIGHUP ,startlogging);

	What sort of end statement needs to be in the function
called to allow program execution to resume back in the main
caller?

	I had put a return; statement in the function and
noticed that things were wrong after the application stopped
catching the SIGHUP after the first call.

	A gdb trace shows that the signal causes a branch to the
code pointed to by the signal statement. The code runs and then
if it reaches the return; statement, the flow is lost and knows
not where to go next.

	Thank you.


Martin McCormick WB5AGZ  Stillwater, OK 
Systems Engineer
OSU Information Technology Department Network Operations Group



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803052126.m25LQX7J035593>