Re: osdep_get_name is broken on OS X

2013-02-14 Thread OZAKI Kiichi
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 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_nam

Re: osdep_get_name is broken on OS X

2013-02-12 Thread Nicholas Marriott
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 > wrote: > > > Ok but what does your patch do and how does it fix the prob

Re: osdep_get_name is broken on OS X

2013-02-11 Thread Nicholas Marriott
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 > uninitial

osdep_get_name is broken on OS X

2013-02-11 Thread OZAKI Kiichi
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. (tmu