Re: svn commit: r334543 - head/usr.bin/top

2018-06-04 Thread Warner Losh
On Mon, Jun 4, 2018 at 9:13 AM, Rodney W. Grimes < free...@pdx.rh.cn85.dnsmgr.net> wrote: > > On 2 Jun, Rodney W. Grimes wrote: > > >> Author: eadler > > >> Date: Sat Jun 2 22:06:27 2018 > > >> New Revision: 334543 > > >> URL: https://svnweb.freebsd.org/changeset/base/334543 > > >> > > >> Log: >

Re: svn commit: r334543 - head/usr.bin/top

2018-06-04 Thread Ian Lepore
On Sun, 2018-06-03 at 14:33 -0700, Rodney W. Grimes wrote: > > > > On Sat, Jun 2, 2018 at 11:08 PM, Eitan Adler wrote: > > > > > > > > On 2 June 2018 at 16:56, Rodney W. Grimes > > > wrote: > > > > > > > > > > > > > > Author: eadler > > > > > Date: Sat Jun  2 22:06:27 2018 > > > > > New Revi

Re: svn commit: r334543 - head/usr.bin/top

2018-06-04 Thread Rodney W. Grimes
[ Charset UTF-8 unsupported, converting... ] > On 04/06/2018 00:33, Rodney W. Grimes wrote: > > lsof is your friend here. That is the tool of choice for finding > > cwd of processes that are in directories you can not unmount. > > s/lsof/fstat -f [-m]/ > :-) I forget we have that tool!! Old fi

Re: svn commit: r334543 - head/usr.bin/top

2018-06-04 Thread Rodney W. Grimes
> On 2 Jun, Rodney W. Grimes wrote: > >> Author: eadler > >> Date: Sat Jun 2 22:06:27 2018 > >> New Revision: 334543 > >> URL: https://svnweb.freebsd.org/changeset/base/334543 > >> > >> Log: > >> top(1): chdir to / as init; remove unneeded comment > >> > >> - chdir to / to allow unmountin

Re: svn commit: r334543 - head/usr.bin/top

2018-06-03 Thread Andriy Gapon
On 04/06/2018 00:33, Rodney W. Grimes wrote: > lsof is your friend here. That is the tool of choice for finding > cwd of processes that are in directories you can not unmount. s/lsof/fstat -f [-m]/ :-) -- Andriy Gapon ___ svn-src-all@freebsd.org maili

Re: svn commit: r334543 - head/usr.bin/top

2018-06-03 Thread Eugene Grosbein
04.06.2018 12:07, Cy Schubert wrote: > In message <5b14c64b.2070...@grosbein.net>, Eugene Grosbein writes: >> Bad side effect of doing that is it is not hard to get a "core" >> from top when run as a user, as it is going to try to write >> to /, and it probably does not have permissio

Re: svn commit: r334543 - head/usr.bin/top

2018-06-03 Thread Cy Schubert
In message <5b14c64b.2070...@grosbein.net>, Eugene Grosbein writes: > 04.06.2018 4:33, Rodney W. Grimes wrote: > > Bad side effect of doing that is it is not hard to get a "core" > from top when run as a user, as it is going to try to write > to /, and it probably does not have permi

Re: svn commit: r334543 - head/usr.bin/top

2018-06-03 Thread Don Lewis
On 2 Jun, Rodney W. Grimes wrote: >> Author: eadler >> Date: Sat Jun 2 22:06:27 2018 >> New Revision: 334543 >> URL: https://svnweb.freebsd.org/changeset/base/334543 >> >> Log: >> top(1): chdir to / as init; remove unneeded comment >> >> - chdir to / to allow unmounting of wd >> - remov

Re: svn commit: r334543 - head/usr.bin/top

2018-06-03 Thread Eugene Grosbein
04.06.2018 4:33, Rodney W. Grimes wrote: Bad side effect of doing that is it is not hard to get a "core" from top when run as a user, as it is going to try to write to /, and it probably does not have permission for that. We already have global sysctl kern.corefile that can be chan

Re: svn commit: r334543 - head/usr.bin/top

2018-06-03 Thread Rodney W. Grimes
> On Sat, Jun 2, 2018 at 11:08 PM, Eitan Adler wrote: > > > On 2 June 2018 at 16:56, Rodney W. Grimes > > wrote: > > >> Author: eadler > > >> Date: Sat Jun 2 22:06:27 2018 > > >> New Revision: 334543 > > >> URL: https://svnweb.freebsd.org/changeset/base/334543 > > >> > > >> Log: > > >> top(1)

Re: svn commit: r334543 - head/usr.bin/top

2018-06-03 Thread Warner Losh
On Sat, Jun 2, 2018 at 11:08 PM, Eitan Adler wrote: > On 2 June 2018 at 16:56, Rodney W. Grimes > wrote: > >> Author: eadler > >> Date: Sat Jun 2 22:06:27 2018 > >> New Revision: 334543 > >> URL: https://svnweb.freebsd.org/changeset/base/334543 > >> > >> Log: > >> top(1): chdir to / as init;

Re: svn commit: r334543 - head/usr.bin/top

2018-06-02 Thread Eitan Adler
On 2 June 2018 at 16:56, Rodney W. Grimes wrote: >> Author: eadler >> Date: Sat Jun 2 22:06:27 2018 >> New Revision: 334543 >> URL: https://svnweb.freebsd.org/changeset/base/334543 >> >> Log: >> top(1): chdir to / as init; remove unneeded comment >> >> - chdir to / to allow unmounting of wd >

Re: svn commit: r334543 - head/usr.bin/top

2018-06-02 Thread Rodney W. Grimes
> > Author: eadler > > Date: Sat Jun 2 22:06:27 2018 > > New Revision: 334543 > > URL: https://svnweb.freebsd.org/changeset/base/334543 > > > > Log: > > top(1): chdir to / as init; remove unneeded comment > > > > - chdir to / to allow unmounting of wd > > - remove warning about running t

Re: svn commit: r334543 - head/usr.bin/top

2018-06-02 Thread Rodney W. Grimes
> Author: eadler > Date: Sat Jun 2 22:06:27 2018 > New Revision: 334543 > URL: https://svnweb.freebsd.org/changeset/base/334543 > > Log: > top(1): chdir to / as init; remove unneeded comment > > - chdir to / to allow unmounting of wd > - remove warning about running top(1) as setuid. If

svn commit: r334543 - head/usr.bin/top

2018-06-02 Thread Eitan Adler
Author: eadler Date: Sat Jun 2 22:06:27 2018 New Revision: 334543 URL: https://svnweb.freebsd.org/changeset/base/334543 Log: top(1): chdir to / as init; remove unneeded comment - chdir to / to allow unmounting of wd - remove warning about running top(1) as setuid. If this is a concern we