cvs commit: src/bin/pkill pkill.1 pkill.c

Ed Schouten ed at 80386.nl
Mon Sep 29 16:04:55 UTC 2008


* John Baldwin <jhb at freebsd.org> wrote:
> On Sunday 28 September 2008 12:44:15 pm Ed Schouten wrote:
> > ed          2008-09-28 16:44:15 UTC
> > 
> >   FreeBSD src repository
> > 
> >   Modified files:
> >     bin/pkill            pkill.1 pkill.c 
> >   Log:
> >   SVN rev 183438 on 2008-09-28 16:44:15Z by ed
> >   
> >   Don't automatically prepend the "tty" prefix to `pkill -t' arguments.
> >   
> >   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 passed
> >   on the command line. This meant that `pkill -t pts/0' was actually
> >   converted to /dev/ttypts/0. Disable this broken behaviour for now.
> >   
> >   Reported by:    erwin
> 
> Why not fix it to do what other utilities like ps, etc. do and just try it 
> both ways?  You want to be able to use the 'tty' column from ps output as an 
> argument this, and serial port logins are still going to show up as 'd0' 
> (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.

-- 
 Ed Schouten <ed at 80386.nl>
 WWW: http://80386.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20080929/275ccdde/attachment.pgp


More information about the cvs-src mailing list