OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Pavel Kankovsky (peakargo.troja.mff.cuni.cz)
Date: Thu May 30 2002 - 17:59:30 CDT

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    On Mon, 27 May 2002, Olaf Kirch wrote:

    > while (1) {
    > sleep a while
    > scan /dev/pts
    > if (changed)
    > rebuild utmp file
    > }

    This would add *all* used ptys to utmp, right? Including ptys used by,
    say, mc?

    > This will do the trick for all xterm/screen type applications because
    > they don't need to set any fancy fields like ut_host anyway.

    Well, xterm wants to set ut_host to its $DISPLAY.
    Whether it needs to do it...it's another question.

    --Pavel Kankovsky aka Peak [ Boycott Microsoft--http://www.vcnet.com/bms ]
    "Resistance is futile. Open your source code and prepare for assimilation."