Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/external/bsd/top/dist



On 2 June 2018 at 18:51, Christos Zoulas <christos%astron.com@localhost> wrote:
> In article <20180602223020.16462FBEE%cvs.NetBSD.org@localhost>,
> Eitan Adler <source-changes-d%NetBSD.org@localhost> wrote:
>>-=-=-=-=-=-
>>
>>Module Name:   src
>>Committed By:  eadler
>>Date:          Sat Jun  2 22:30:20 UTC 2018
>>
>>Modified Files:
>>       src/external/bsd/top/dist: top.c
>>
>>Log Message:
>>top(1): chdir to / at init
>>
>>This allows us to unmount whatever directory we happen to be in when we
>>started top(1).
>
> Cuts both ways; next time I hit ^\ to make it core-dump and it does
> not work because it chdir'ed to slash... I will then have to edit
> the source to fix this. In general programs should not do unexpected
> things; you can alias top to 'cd / && /usr/bin/top' in your own
> environment. Please don't impose this to everyone. We all strive for
> less complexity and magic.

I don't mind reverting this: it came out of a discussion on IRC. That
said, perhaps "cd /tmp" would resolve both issues?




-- 
Eitan Adler


Home | Main Index | Thread Index | Old Index