Is there a library call that you can make on Linux which will lock a tty before using it, so that your program can "play well with others", or is the right approach to just copy it out of some other piece of GPLed code? Thanks! -- Alan Robertson alanr at bell-labs.com