how to find the current tty from a daemon?
From: Andrej Hocevar (drejcica_at_volja.net)
Date: 08/06/03
- Next message: Kasper Dupont: "Re: how to find the current tty from a daemon?"
- Previous message: udayan: "Re: few questions about how linux work"
- Next in thread: Kasper Dupont: "Re: how to find the current tty from a daemon?"
- Reply: Kasper Dupont: "Re: how to find the current tty from a daemon?"
- Reply: Bob Hauck: "Re: how to find the current tty from a daemon?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 06 Aug 2003 17:50:44 GMT
Hello,
I'm trying to find out how I can tell the current tty from a daemon
written in C. ttyname() is useful only for the tty I start it on, but
how should I do it after that? Besides, ttyname() doesn't help if I
close fds 0, 1 and 2.
Any ideas?
Thanks,
andrej
--
echo ${girl_name} > /etc/dumpdates
- Next message: Kasper Dupont: "Re: how to find the current tty from a daemon?"
- Previous message: udayan: "Re: few questions about how linux work"
- Next in thread: Kasper Dupont: "Re: how to find the current tty from a daemon?"
- Reply: Kasper Dupont: "Re: how to find the current tty from a daemon?"
- Reply: Bob Hauck: "Re: how to find the current tty from a daemon?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|