It appears that after utmpx.h gone into effect, ports/sysutils/screen and
ports/sysutils/tmux are not working correctly after a updated ports tree and
building/installing the ports. What basically happens is the screen/tmux
sessions which basically use tty's don't show up on the system in w, who,
finger.
root@bigbang [4:10pm][/usr/src] >> w
4:10PM up 4 days, 1:59, 2 users, load averages: 0.00, 0.00, 0.00
USER TTY FROM LOGIN@ IDLE WHAT
vince pts/0 solar.dnalogic.net Wed02PM - tmux: client
(/usr/t
root@bigbang [4:10pm][/usr/src] >>
>From ps -agx:
PID TT STAT TIME COMMAND
2174 0 Is 0:00.38 -tcsh (tcsh)
43199 0 I+ 0:00.00 tmux: client (/usr/tmp/tmux-1000/default) (tmux)
21662 1 Is+ 0:00.09 -tcsh (tcsh)
21684 2 Is 0:00.11 -tcsh (tcsh)
47415 2 S+ 3:54.23 alpine
21691 3 Is+ 0:00.08 -tcsh (tcsh)
21698 4 Is+ 0:00.14 -tcsh (tcsh)
21705 5 Is+ 0:00.18 -tcsh (tcsh)
21712 6 Is+ 0:00.24 -tcsh (tcsh)
21719 7 Is+ 0:00.07 -tcsh (tcsh)
21726 8 Is+ 0:00.07 -tcsh (tcsh)
21733 9 Is 0:00.07 -tcsh (tcsh)
21899 9 I 0:00.01 su
21900 9 I 0:00.39 _su (tcsh)
43644 9 D 0:01.15 _su (tcsh)
66082 9 R+ 0:00.00 ps -agx
66083 9 RV 0:00.00 _su (tcsh)
21740 10 Is 0:00.09 -tcsh (tcsh)
21776 10 I 0:00.01 su
21777 10 I 0:00.11 _su (tcsh)
47747 10 S+ 1:34.21 trafshow -R 1
Cheers,
Vince
Vincent Poy, Ph.D. - Astrophysics
_______________________________________________
freebsd...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-curre...@freebsd.org"
I can second that screen doesn't compile anymore and that tmux ttys
don't list in w/who.
Thanks,
-- Chris
-----------------------------------------
http://twitter.com/chrisattack
http://chrisattack.com
>> On Sun, Feb 7, 2010 at 6:26 PM, Vincent Poy <vinc...@gmail.com> wrote:
>> Greetings everyone:
>>
>> It appears that after utmpx.h gone into effect, ports/sysutils/screen and
>> ports/sysutils/tmux are not working correctly after a updated ports tree
>> and building/installing the ports. What basically happens is the
>> screen/tmux sessions which basically use tty's don't show up on the
system
>> in w, who, finger.
>
> I can second that screen doesn't compile anymore and that tmux ttys don't
list
> in w/who.
Actually, screen was broken and then cy committed updates to screen about 11
days ago and it compiles without issues. Just that like tmux, the session
doesn't show up in w/who/finger, it acts like hitting ctrl-A + L in screen
which hides the pty from shown as logged in.
Cheers,
Vince
Vincent Poy, Ph.D. - Astrophysics
Which is because tmux doesn't update utmp files anyway.
--
Ed Schouten <e...@80386.nl>
WWW: http://80386.nl/
* Vincent Poy <vinc...@gmail.com> wrote:
> It appears that after utmpx.h gone into effect, ports/sysutils/screen and
> ports/sysutils/tmux are not working correctly after a updated ports tree and
> building/installing the ports. What basically happens is the screen/tmux
> sessions which basically use tty's don't show up on the system in w, who,
> finger.
I just rebuilt screen and doesn't seem to work indeed. The point is that
I wrote a perfectly fine patch for it and sent it to cy@, but he
committed a completely different version to the ports tree. You'd better
discuss this regression with him.
My version did work:
| (ed@dull) ~ $ tty
| /dev/pts/0
| (ed@dull) ~ $ w
| 9:02AM up 5 days, 11:02, 1 user, load averages: 0.08, 0.08, 0.03
| USER TTY FROM LOGIN@ IDLE WHAT
| ed pts/0 mekker.80386.nl 9:02AM - w
| (ed@dull) ~ $ screen
| (ed@dull) ~ $ tty
| /dev/pts/2
| (ed@dull) ~ $ w
| 9:03AM up 5 days, 11:02, 1 user, load averages: 0.05, 0.08, 0.03
| USER TTY FROM LOGIN@ IDLE WHAT
| ed pts/2 mekker:S.0 9:03AM - w
> * Vincent Poy <vinc...@gmail.com> wrote:
> > It appears that after utmpx.h gone into effect, ports/sysutils/screen and
> > ports/sysutils/tmux are not working correctly after a updated ports tree
> and
> > building/installing the ports. What basically happens is the screen/tmux
> > sessions which basically use tty's don't show up on the system in w, who,
> > finger.
>
> Which is because tmux doesn't update utmp files anyway.
>
I only recently learned about tmux and thought it would update utmp just
like screen did as supposedly tmux is like screen with all the
enhancements but ofcourse, it doesn't have that CTRL-B L command to
login/logoff like screen does and I noticed tmux doesn't even have patches
as it's just a Makefile.
On Mon, Feb 8, 2010 at 12:03 AM, Ed Schouten <e...@80386.nl> wrote:
>
> * Vincent Poy <vinc...@gmail.com> wrote:
> > It appears that after utmpx.h gone into effect, ports/sysutils/screen and
> > ports/sysutils/tmux are not working correctly after a updated ports tree
> and
> > building/installing the ports. What basically happens is the screen/tmux
> > sessions which basically use tty's don't show up on the system in w, who,
> > finger.
>
> I just rebuilt screen and doesn't seem to work indeed. The point is that
> I wrote a perfectly fine patch for it and sent it to cy@, but he
> committed a completely different version to the ports tree. You'd better
> discuss this regression with him.
>
> My version did work:
>
> | (ed@dull) ~ $ tty
> | /dev/pts/0
> | (ed@dull) ~ $ w
> | 9:02AM up 5 days, 11:02, 1 user, load averages: 0.08, 0.08, 0.03
> | USER TTY FROM LOGIN@ IDLE WHAT
> | ed pts/0 mekker.80386.nl 9:02AM - w
> | (ed@dull) ~ $ screen
> | (ed@dull) ~ $ tty
> | /dev/pts/2
> | (ed@dull) ~ $ w
> | 9:03AM up 5 days, 11:02, 1 user, load averages: 0.05, 0.08, 0.03
> | USER TTY FROM LOGIN@ IDLE WHAT
> | ed pts/2 mekker:S.0 9:03AM - w
Interesting, what's different between the patch you wrote vs the one
cy@committed that's currently in the tree? Sorry about the false tmux
alarm, I
thought tmux would still show logins on the pty's for the sessions as it's
supposed to be similar to screen.
Sorry, I managed to lose the patch. Thank goodness for ZFS snapshots. It should be working now. Tested on 7, 8, and 9.
--
Cheers,
Cy Schubert
<Cy.Sc...@komquats.com>
Thanks Cy for fixing it as it works fine now!
Cheers,
Vince
Vincent Poy, Ph.D. - Astrophysics