delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/08/08/04:01:44

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:cc:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=KfPeG/yfhofLDECemNI8l51eXn/lziN+GLTxnkuQL8KYRSY+PXqOW
0bnzxUVrv0Iy8J2WuUjZWxUbAMnGbHvNDDjLyQT52oxdOTsyoL/lqh9Djw5DBj/F
ST8N51XHhzJ5z051uZWx8pYKqNVZB/40XnF1uGoBBvds/MypDe18Ss=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:cc:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=KxPn2IyYAHZ5wq0VZl/kJPp3GFw=; b=VxVse4ZgYmu5+YSZ9GQhGMgHZB/0
ngYVgpu037kivp4Xo6IyuXZ1c99dyjTLxSIDeoXTGN+Xi1DFkmBBV0h91lwGSgov
hP63VYUIe4dcu84R8lJeVbGviVEY0460rYuMZN6FW7a/U3aQRLW36+FTCKoGNcsx
czwI97x7i53d6+k=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-116.6 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,GOOD_FROM_CORINNA_CYGWIN,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=
X-HELO: mout.kundenserver.de
Date: Thu, 8 Aug 2019 10:00:44 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: "Lavrentiev, Anton (NIH/NLM/NCBI) [C]" <lavr AT ncbi DOT nlm DOT nih DOT gov>
Cc: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: Re: getpriority() and top display for priority is inconsistent
Message-ID: <20190808080044.GE11632@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: "Lavrentiev, Anton (NIH/NLM/NCBI) [C]" <lavr AT ncbi DOT nlm DOT nih DOT gov>, "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
References: <BL0PR0901MB4308A80219F99EEFE71EDA93A5D40 AT BL0PR0901MB4308 DOT namprd09 DOT prod DOT outlook DOT com>
MIME-Version: 1.0
In-Reply-To: <BL0PR0901MB4308A80219F99EEFE71EDA93A5D40@BL0PR0901MB4308.namprd09.prod.outlook.com>
User-Agent: Mutt/1.11.3 (2019-02-01)

--B8Vg9Vt30SMsjSDh
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Aug  7 19:27, Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin wrote:
> > Please give it a try.
>=20
> diff --git a/winsup/cygwin/fhandler_process.cc b/winsup/cygwin/fhandler_p=
rocess.cc
> index 2a06554..2305b53 100644
> --- a/winsup/cygwin/fhandler_process.cc
> +++ b/winsup/cygwin/fhandler_process.cc
> @@ -1076,7 +1076,7 @@ format_process_stat (void *data, char *&destbuf)
>    unsigned long fault_count =3D 0UL,
>                 vmsize =3D 0UL, vmrss =3D 0UL, vmmaxrss =3D 0UL;
>    uint64_t utime =3D 0ULL, stime =3D 0ULL, start_time =3D 0ULL;
> -  int priority =3D 0;
> +=20=20
> [...]

Close enough for a start, thanks.  I pushed your patch with a short
commit message.


Thanks,
Corinna

--=20
Corinna Vinschen
Cygwin Maintainer

--B8Vg9Vt30SMsjSDh
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAl1L1qwACgkQ9TYGna5E
T6DRrw//fbEdKIS3jMWTz3DjmIBsVx+bN2hMdxGg9XlzvYLBtuj5AaylL7g3SdCB
p8eJBG8HxQzs6c2RUTIo3tnyRB9Lo99U4iXfyLMkVd1zqJLIp2Vv9Y7exwb4J8GI
dFSLkAqkcV+DNQMfaOXwSm2HoLLBOZJgqzeHi/tOTcPaezLV9JDZ5mRl4eV6yu8n
+2sqzDGpCKwVv5B/Y6AyIKSDUtqK2M/bbuLBu8PoYoYeiVB02t/MlAS61hqVO1Gf
qyKUE7/ElbzglzAvmil17vqcd+We6O0UYVLP99kor18+kUgpGH3393AEEjmTEtX+
mQmEVRq+qpjK36Hb+FehdKElv7/JOx2AJCgcfx9A/suZFrhN3u2zv+DDQvvypWeW
YKToQK3yi+fuJcWsutL2inuJDc0tAW0jr6jlgdFX0pp/iSS6YIDZqLYK9rXHk+5R
FXJGEzfx9lpVQ1S2xO22mTgnqtXxBPtFhdrExJEbd6mrYg6m7MHlmVUD6sonBrhT
0ICrNKZG7PYtPon/oM/sVRHa4jBUtJYwMexdHi26gFTBR5vTr3vcT/7u5OCAvGRs
XeHvRJCapayl+kb9UEc0Nvwpjs92uVvdXhhVd9656aMdOiSPINb4oKClfE2hKA/n
b1bPZMQc1wwe7BxZvxgLHpMH2ai5aadAE75aOucYaZu9aigtCL0=
=nm5W
-----END PGP SIGNATURE-----

--B8Vg9Vt30SMsjSDh--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019