Re: [HEADSUP] naming of tty devices.

From: Ruslan Ermilov (ru_at_freebsd.org)
Date: 09/20/04

  • Next message: Roman Kurakin: "Re: [HEADSUP] naming of tty devices."
    Date: Mon, 20 Sep 2004 16:03:16 +0300
    To: Valentin Nechayev <netch@lucky.net>
    
    
    

    On Mon, Sep 20, 2004 at 03:19:13PM +0300, Valentin Nechayev wrote:
    > Mon, Sep 20, 2004 at 14:09:02, phk wrote about "Re: [HEADSUP] naming of tty devices.":
    >
    > >>When restoring terminal device from this name, now it is possible yet
    > >>to determine terminal testing /dev/tty$x or /dev/cua$x; with your new
    > >>scheme this will be impossible totally.
    > > No, that is exactly the way it will work, and which today it doesn't.
    > > ttyd0 and cuad0 is the same device. The difference between "tty"
    > > and "cua" is how we react to DCD when opening.
    > > You can never be
    > > logged in vial both ttyd0 and cuad0 at the same time, so there is
    > > no logging issue.
    >
    > I say not for logging, but for restoring full terminal name from short name.
    > E.g. listing processes controlled by this terminal. Whether /bin/ps will
    > list processes for both callin and callout port, when got "-t d1"?
    >
    I fail to see what will be different. Currently, it works like this:

    $ ps -tfoo
    ps: /dev/ttyfoo and /dev/foo: No such file or directory
    $ tty
    /dev/ttypo
    $ ps -t/dev/ttypo
      PID TT STAT TIME COMMAND
    11104 po Ss 0:00,07 -tcsh (tcsh)
    11112 po S 0:00,01 sh
    11116 po R+ 0:00,00 ps -t/dev/ttypo

    /*-
     * The user can specify a device via one of three formats:
     * 1) fully qualified, e.g.: /dev/ttyp0 /dev/console
     * 2) missing "/dev", e.g.: ttyp0 console
     * 3) two-letters, e.g.: p0 co
     * (matching letters that would be seen in the "TT" column)
     */

    To answer your question: when given "-t d1", both now and then
    it will convert it to /dev/ttyd1 and /dev/d1. If you need
    both callout and callin devices, "-t /dev/ttyd1 -t /dev/cuaa1"
    should be used. And you can always use "-O tty" to see the
    full tty name.

    Cheers,

    -- 
    Ruslan Ermilov
    ru@FreeBSD.org
    FreeBSD committer
    
    



  • Next message: Roman Kurakin: "Re: [HEADSUP] naming of tty devices."

    Relevant Pages

    • Re: Process Access -> screen reattach
      ... After logging back it, ... > All I have is the PID, no tty as mentioned in 'screen' ... > How can I just pull the process forward ...
      (alt.linux)
    • Re: How to Stop Logging to Screen?
      ... >> You might want to correct the behavior rather than suppressing the error ... >> If you turn off logging these messages in syslog you won't get any ... > logged to tty, NOT some minor event like some packet was denied. ... The USA Patriot Act is the most unpatriotic act in American history. ...
      (alt.os.linux)
    • Re: getting to gui to start at startup
      ... at start up it goes to run level 5 then prompts for login in ... tty. ... after logging in, i enter startx and it brings me to the gui but my ...
      (alt.os.linux.suse)
    • Re: how do I suppress system messages?
      ... You can get to another tty by logging into the machine again from another SSH ... session. ...
      (freebsd-questions)
    • Re: SSH login delay
      ... >>Does any one know what causes the long delay between entering ... >>the password to ssh and the actual logging in of the shell prompt? ... FreeBSD committer ...
      (FreeBSD-Security)