Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Mar 2012 23:00:43 +0200
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        "Robert N. M. Watson" <rwatson@freebsd.org>
Cc:        Mikolaj Golub <trociny@freebsd.org>, freebsd-hackers@freebsd.org
Subject:   Re: a sysctl for process binary osreldate
Message-ID:  <20120317210043.GQ75778@deviant.kiev.zoral.com.ua>
In-Reply-To: <82D45B12-1739-4007-8B23-E8B5565F1BBB@FreeBSD.org>
References:  <8662e3m3eq.fsf@kopusha.home.net> <82D45B12-1739-4007-8B23-E8B5565F1BBB@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--26hdtSce1ee+1mvy
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Mar 17, 2012 at 08:51:25PM +0000, Robert N. M. Watson wrote:
>=20
> On 17 Mar 2012, at 19:30, Mikolaj Golub wrote:
>=20
> > Currently we can check and change binary osreldate of another process v=
ia
> > procfs(5).
> >=20
> > Kostik suggested to add a new sysctl for the same purpose and also exte=
nd
> > procstat to show osrel.
> >=20
> > Here are patches I am going to commit if there are no objections or
> > suggestions.
> >=20
> > http://people.freebsd.org/~trociny/kern_proc_osrel.1.patch
> > http://people.freebsd.org/~trociny/procstat.osrel.1.patch
> >=20
> > I set the same permissions as for procfs(5) osrel -- so only user can r=
ead it,
> > but may be this is too restrictive and p_cansee on read would be ok?
> >=20
> > I added osrel output to procstat -b option:
> >=20
> > kopusha:~% procstat -b 2975
> >  PID COMM                OSREL PATH
> > 2975 emacs             1000001 /usr/local/bin/emacs-23.3
> >=20
> > Would this be ok or someone see a better way?
>=20
>=20
> Support for writing the field seems to violate the synchronisation protoc=
ol defined for p_osrel in proc.h. In the new world order, is this simply a =
documentation bug, or is it also a software bug?
>=20

This is a documentation bug, I failed to update the field description when
added procfs support.

--26hdtSce1ee+1mvy
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (FreeBSD)

iEYEARECAAYFAk9k+3oACgkQC3+MBN1Mb4hyOACfZOafnmwN42PCZqU8umJEOPEg
4+cAoMrXPzDbmqfVtQIcGcjak3wkkfZu
=k0hP
-----END PGP SIGNATURE-----

--26hdtSce1ee+1mvy--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120317210043.GQ75778>