J Raynor
2014-08-30 23:00:44 UTC
pane_current_path on solaris doesn't work. I only have access to
solaris 11, so I can't tell if this is a new problem with that version
or if it hasn't worked for a while.
I've attached a patch that fixes the problem, but I can't test on
previous versions of solaris.
In osdep-sunos.c, osdep_get_cwd calls tcgetpgrp to get the pgrp.
tcgetpgrp fails because (on solaris) the caller has to be in the
foreground process group of the terminal it's querying. The TIOCGPGRP
ioctl doesn't have this restriction. But it needs the slave side of
the pty, and the fd passed in is the master side. This can be worked
around with ptsname.
solaris 11, so I can't tell if this is a new problem with that version
or if it hasn't worked for a while.
I've attached a patch that fixes the problem, but I can't test on
previous versions of solaris.
In osdep-sunos.c, osdep_get_cwd calls tcgetpgrp to get the pgrp.
tcgetpgrp fails because (on solaris) the caller has to be in the
foreground process group of the terminal it's querying. The TIOCGPGRP
ioctl doesn't have this restriction. But it needs the slave side of
the pty, and the fd passed in is the master side. This can be worked
around with ptsname.