comp.lang.ada
 help / color / mirror / Atom feed
* Signals and delays
@ 2002-08-28  7:06 Jim Podmore
  0 siblings, 0 replies; only message in thread
From: Jim Podmore @ 2002-08-28  7:06 UTC (permalink / raw)


I have an application in GNAT running under Irix 6.5 which uses a pragma 
attach_handler to catch a signal (sigusr2) from another process.

All seems to work fine, except once in a while the program stops, with 
all of the cyclic tasks stuck on delay statements that should have 
expired long ago.  The problem seems to occur at about the same point in 
the regular cycle of the task execution each time, and one thing that 
struck me is that one of the delay statements is carefully timed to 
occur at the exepcted time of arrival of the next sigusr2 signal.  When 
I changed the timing slightly to avoid any conflict, the problem 
(fingers crossed) seemed to go away.

So is there a known problem with conflicts between signal handling and 
delays / real time clock ?




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-08-28  7:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-28  7:06 Signals and delays Jim Podmore

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox