Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Sep 2008 18:04:54 +0200
From:      Ed Schouten <ed@80386.nl>
To:        John Baldwin <jhb@freebsd.org>
Cc:        cvs-src@freebsd.org, src-committers@freebsd.org, cvs-all@freebsd.org
Subject:   Re: cvs commit: src/bin/pkill pkill.1 pkill.c
Message-ID:  <20080929160454.GE16837@hoeg.nl>
In-Reply-To: <200809291051.47759.jhb@freebsd.org>
References:  <200809281644.m8SGiNZD041087@repoman.freebsd.org> <200809291051.47759.jhb@freebsd.org>

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

--ILuaRSyQpoVaJ1HG
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* John Baldwin <jhb@freebsd.org> wrote:
> On Sunday 28 September 2008 12:44:15 pm Ed Schouten wrote:
> > ed          2008-09-28 16:44:15 UTC
> >=20
> >   FreeBSD src repository
> >=20
> >   Modified files:
> >     bin/pkill            pkill.1 pkill.c=20
> >   Log:
> >   SVN rev 183438 on 2008-09-28 16:44:15Z by ed
> >  =20
> >   Don't automatically prepend the "tty" prefix to `pkill -t' arguments.
> >  =20
> >   Because we now enforce UNIX98-style PTY's, we now use a lot of TTY's
> >   that don't have the traditional /dev/ttyXX naming scheme. pkill(1)'s =
-t
> >   flag automatically prepended the word "tty" to each TTY that was pass=
ed
> >   on the command line. This meant that `pkill -t pts/0' was actually
> >   converted to /dev/ttypts/0. Disable this broken behaviour for now.
> >  =20
> >   Reported by:    erwin
>=20
> Why not fix it to do what other utilities like ps, etc. do and just try i=
t=20
> both ways?  You want to be able to use the 'tty' column from ps output as=
 an=20
> argument this, and serial port logins are still going to show up as 'd0'=
=20
> (sio0) or 'u0' (uart0).

Yeah, that's true. My fix was the best I could do in 5 minutes, but
trying both device names would seem like a fair approach. I'll see if I
can get to something this evening.

--=20
 Ed Schouten <ed@80386.nl>
 WWW: http://80386.nl/

--ILuaRSyQpoVaJ1HG
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iEYEARECAAYFAkjg/KYACgkQ52SDGA2eCwVyagCcCEQCudl/UYIQcyw0GtybJMZb
iq8Anj2WaIl7inyB6QY6UIH+pxzwo+nt
=md6q
-----END PGP SIGNATURE-----

--ILuaRSyQpoVaJ1HG--



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