Xref: utzoo alt.sys.sun:3990 comp.unix.programmer:1898 Path: utzoo!utgpu!cs.utexas.edu!natinst!brian From: brian@natinst.com (Brian H. Powell) Newsgroups: alt.sys.sun,comp.unix.programmer Subject: ualarm doesn't always start Message-ID: <23595@natinst.natinst.com> Date: 24 May 91 15:50:42 GMT Followup-To: poster Organization: National Instruments, Austin, TX Lines: 22 This is on a SPARCstation 2, running SunOS 4.1.1B. This behavior happens with two different C compilers. I've got a program which installs a signal handler for SIGALRM, then calls ualarm(55000, 55000); which is supposed to send an ALRM signal in 55000 microseconds, and keep sending them every 55000 microseconds after that. The first two times I run the program after compiling it, the ualarm doesn't work; I don't get a SIGALRM. (I can send it by hand, so I know my handler is installed.) The third and subsequent times I run the program, it seems to function normally. (Until I recompile.) What am I doing wrong? Please respond by email. I'll summarize if there's any interest. Brian H. Powell, M/S 56-14 National Instruments Corp. brian@natinst.com 6504 Bridge Point Parkway uunet!cs.utexas.edu!natinst!brian Austin, Texas 78730-5039 AppleLink:NATINST (512) 338-9119