This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
Re: [psmisc] Display bug
- From: Joseph Krahn <joseph dot krahn at gmail dot com>
- To: cygwin-apps at cygwin dot com
- Date: Fri, 1 Jul 2011 10:42:56 -0400
- Subject: Re: [psmisc] Display bug
- References: <BANLkTin5TpzCD7BGmVbrCiB6KM+3kV3Axw@mail.gmail.com> <BANLkTinxNu18TgpMkxQjqZ74bSRZMjav=Q@mail.gmail.com>
The %6d format was obviously defined when PIDs were 16 bits. It may be
useful to used a fixed-width format to keep things tidy when PIDs are
not so big, but include a leading space so that large PIDs don't run
together.
Joe Krahn
On Thu, Jun 30, 2011 at 8:43 AM, AZ 9901 <az9901@gmail.com> wrote:
> Hello,
>
> Replacing line 719 by the following in fuser.c works fine :
> printf (" %d", item->u.proc.pid);
>
> Could you please notify us when the package on the repository will be updated ?
>
> Thank you very much !
>
> Best regards,
>
> Benjamin
>
>
>
> 2011/6/29 AZ 9901 <az9901@gmail.com>
>>
>> Hello,
>>
>> I think there is a little display bug in last psmisc package (21.5-3), especially in fuser tool.
>>
>> For example :
>>
>> # fuser /tmp/test
>> /tmp/test:????????? 13487213604414537
>>
>> Process numbers are not separated.
>>
>> I think that this is due to line 719 in fuser.c :
>> printf ("%6d", item->u.proc.pid);
>>
>> Perhaps the following could be better ?
>> printf ("%d ", item->u.proc.pid);
>>
>> Could it be possible to update this package ?
>>
>> Thank you very much !
>>
>> Best regards,
>>
>> Benjamin
>>
>