OSDN Git Service

Fix netstat -p.
authorElliott Hughes <enh@google.com>
Tue, 8 Sep 2015 15:39:07 +0000 (10:39 -0500)
committerRob Landley <rob@landley.net>
Tue, 8 Sep 2015 15:39:07 +0000 (10:39 -0500)
commitfe998fe2bb75a73ba58a7c048f50f45ee76a0531
tree12d10f52d74c5166967a207d850bc0e40d730363
parent104fbaaceaf4001d8c9c998981e7bcc22fdb027d
Fix netstat -p.

netstat -p was failing for any cmdline longer than 21 characters. (A
typical Chrome render process has about half a kilobyte of cmdline.)

There's still a lot of cleanup to be done later, but this is enough to
fix -p and remove a fair amount of unnecessary custom code into the
bargain.
toys/pending/netstat.c