Hi

This looks good to me but I want someone to test it on Solaris 10 before I add
it (I don't care about Solaris <10).

My usual Solaris tester seems to be asleep right now but I'll see if I can
rustle someone up later.

Thanks


On Mon, Oct 12, 2009 at 06:21:44PM -0700, Todd Carson wrote:
> I've attached my version of an osdep_get_name() function to get the active
> function name on Solaris.
> 
> I'm only using it on OpenSolaris snv_124 x86 so far; hopefully it will
> work on Solaris 10 as well, given that all of the interfaces it uses are
> standard.
> 
> tcgetpgrp() returns ENOTTY if it's called on a tty other than the caller's
> controlling tty, but issuing the TIOCGPGRP ioctl directly works.
> 
> TIOCGPGRP works only on the slave end of a pty pair, but since
> tmux provides only the master to osdep_get_name(), and the tty argument is
> an empty string (?), I'm calling ptsname() to get the slave and open it.
> This should be improved somehow, but I'm not sure how right now. Either
> tmux could keep a file descriptor to the slave around, or perhaps there's
> some STREAMS trick that would make it work on the master end; I don't know.


> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay 
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference

> _______________________________________________
> tmux-users mailing list
> tmux-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tmux-users


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to