Two Programming Questions

Jim Gottlieb jimmy at denwa.info.com
Mon Aug 27 19:35:07 AEST 1990


One of our programmers (who happens to be too lazy to get his UUCP link
up and working) asked me to ask the following questions.  We use
Interactive 2.2.

He is trying to open a tty port for a read and he wants the read to
time out and complete after a certain time-out period has elapsed.  He
says that TFM explains how to do this but it does not work; it never
times out.  I suggested that he first try installing the FAS driver,
but he does not want to give up VP/ix access to the serial ports.



He also wonders if there is some way to write-lock shared memory.  
Our application requires that no more than one process be altering the
contents of a certain shared memory segment.  If not, I guess we can
always kludge around the problem by using the presence of a "lock" file
to indicate whether it is OK to write to that shared memory, or we can
just forget about using shared memory and use a real file with file
locking instead.  If it is being constantly accessed, it will be in
memory anyway.

Any hints welcomed.  Thanks...

--
Jim Gottlieb 					Info Connections, Tokyo, Japan
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
    <jimmy at pic.ucla.edu> or <jimmy at denwa.info.com> or <attmail!denwa!jimmy>
Fax: +81 3 237 5867				    Voice Mail: +81 3 222 8429



More information about the Comp.unix.i386 mailing list