Problems with alarm (Xenix 3.2e)
Andy Behrens
andyb at dartvax.UUCP
Thu Oct 24 06:35:16 AEST 1985
Does anybody know why...
On XENIX 3.2e, the sleep routine calls signal, passing the routine to
execute on an alarm call, then calls alarm. The routine to execute
mysteriously executes the following 286 code before returning:
push di
push si
pop si
pop di
Why? I can't get timer traps to work. Must I do something mysterious
like this? I am getting segmentation violations on the Altos 2086. I
am calling signal( SIGALRM, xxx ), where xxx is set to routine(), and
routine is:
int routine() {
flag = TRUE;
}
P.S. This works MOST of the time, but sometime produces a segmentation
violation.
P.P.S. I would dearly love to find someone who can answer such questions.
Dealing with ALTOS is impossible!
Andy Behrens
{astrovax,decvax,cornell,ihnp4,linus}!dartvax!andyb.UUCP
andyb at dartmouth.CSNET
andyb%dartmouth at csnet-relay.ARPA
RFD 1 Box 116, Union Village, Vt. 05043
More information about the Comp.unix.wizards
mailing list