jamesp@wacsvax.OZ (James Pinakis) (06/01/89)
I'm having trouble with setting up the virtual timer under SUN Unix. The following code works fine on the VAX under BSD4.3 but doesn't work on the SUN (the SIGVTALRM signal is never received): struct itimerval it; . . it.it_interval.tv_sec = 0; it.it_interval.tv_usec = GRANULE; it.it_value.tv_sec = 0; it.it_value.tv_usec = GRANULE; setitimer(ITIMER_VIRTUAL,&it,0); If I change the ITIMER_VIRTUAL to an ITIMER_REAL it works ok but I would rather use the virtual timer. Am I doing something wrong? Any help at all would be most appreciated. james ------------- Department of Computer Science, ACSnet: jamesp@wacsvax.oz University of Western Australia, ARPA: jamesp%wacsvax.oz@uunet.uu.net Nedlands WA 6009, UUCP: ..!uunet!munnari!wacsvax!jamesp AUSTRALIA PHONE: (09) 380 2305 OVERSEAS: +61 9 380 2305