Xref: utzoo comp.unix.questions:22585 comp.unix.wizards:22246 Path: utzoo!attcan!uunet!mcsun!unido!quando!wichert From: wichert@quando.UUCP (Peter Wichert) Newsgroups: comp.unix.questions,comp.unix.wizards Subject: reassigning /dev/tty Keywords: /dev/tty Message-ID: <1530@quando.UUCP> Date: 30 May 90 10:33:08 GMT Reply-To: wichert@quando.quantum.de (Peter Wichert) Organization: Quantum GmbH, Dortmund, W-Germany Lines: 26 Hi, I have a problem with re-connecting '/dev/tty' on a BSD System. My program is a background-server that acts as a daemon. Therefore I disconnected the server from all fd's , setpgrp'ed and and throw away '/dev/tty' by fd = open ("/dev/tty", O_RDWR); ioctl (fd, TIOCNOTTY, 0)'. close (fd); But the program has to do something with '/etc/restore' later, and '/etc/restore' wants to open '/dev/tty'. The error 'no such device or address' comes up. This comes up although I reconnected with a new controlling terminal. How can I reconnect '/dev/tty' to my program again ???? Any Ideas ?? Bye, Peter -- Peter Wichert UUCP: {backbone}!unido!quando!wichert OR wichert@quando.uucp Quantum GmbH Bitnet: UNIDO!quando!wichert OR wichert%quando@UNIDO(.bitnet) Dortmund internet: wichert%quando%unido.UUCP@mcsun.cwi.nl Germany internet: wichert@quando.quantum.de