Ok, applied thanks! On Mon, Feb 11, 2013 at 09:37:11PM +0900, OZAKI Kiichi wrote: > My patch replaces sysctl with proc_pidinfo. This is the same way as > osdep_get_cwd. > > > On 2013/02/11, at 21:04, Nicholas Marriott <nicholas.marri...@gmail.com> > wrote: > > > Ok but what does your patch do and how does it fix the problem? > > > > > > On Mon, Feb 11, 2013 at 08:56:06PM +0900, OZAKI Kiichi wrote: > >> On OS X, osdep_get_name calls sysctl by the pid of the session leader > >> process. > >> But sysctl returns 0 even though process is gone, so osdep_get_name > >> returns uninitialized value. > >> > >> For example, command `ps | less` (ps -- session leader -- quits before > >> less) causes status-line disarray sometimes. > >> (tmux built by clang, default config) > >> http://i.imgur.com/47P56.png > >> > >> I propose the following patch. > >> https://gist.github.com/ichizok/4231151/raw/346c46e955cf3b877f54938205ca10eea6856e22/osdep-darwin.c.diff > >> > >> Regards, > >> OZAKI > >> ------------------------------------------------------------------------------ > >> Free Next-Gen Firewall Hardware Offer > >> Buy your Sophos next-gen firewall before the end March 2013 > >> and get the hardware for free! Learn more. > >> http://p.sf.net/sfu/sophos-d2d-feb > >> _______________________________________________ > >> tmux-users mailing list > >> tmux-users@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/tmux-users >
------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users