.
OBS-URL: https://build.opensuse.org/package/show/Base:System/procps?expand=0&rev=40
This commit is contained in:
parent
ebd8cc790e
commit
3d10b6eae1
@ -91,8 +91,8 @@
|
|||||||
+The procps package is maintained by Albert Calahan. Please send
|
+The procps package is maintained by Albert Calahan. Please send
|
||||||
+bug reports to <albert@users.sf.net>.
|
+bug reports to <albert@users.sf.net>.
|
||||||
--- pmap.c
|
--- pmap.c
|
||||||
+++ pmap.c 2010-03-02 15:16:14.000127413 +0000
|
+++ pmap.c 2010-12-03 16:55:52.268426585 +0000
|
||||||
@@ -1,372 +1,421 @@
|
@@ -1,372 +1,428 @@
|
||||||
/*
|
/*
|
||||||
- * Copyright 2002 by Albert Cahalan; all rights reserved.
|
- * Copyright 2002 by Albert Cahalan; all rights reserved.
|
||||||
- * This file may be used subject to the terms and conditions of the
|
- * This file may be used subject to the terms and conditions of the
|
||||||
@ -347,7 +347,14 @@
|
|||||||
+ if (!doswap)
|
+ if (!doswap)
|
||||||
+ goto out;
|
+ goto out;
|
||||||
+
|
+
|
||||||
|
+ /* get and ignore anonymous */
|
||||||
|
+ if (!fgets(buff, BUFFERSIZE, smaps_fp))
|
||||||
|
+ return 1;
|
||||||
|
+
|
||||||
|
+ assigned = sscanf(buff, "Anonymous: %lld", &data);
|
||||||
|
+
|
||||||
+ /* get swap */
|
+ /* get swap */
|
||||||
|
+ if (assigned == 1)
|
||||||
+ if(!fgets(buff, BUFFERSIZE, smaps_fp))
|
+ if(!fgets(buff, BUFFERSIZE, smaps_fp))
|
||||||
+ return 1;
|
+ return 1;
|
||||||
+
|
+
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Dec 3 17:56:27 CET 2010 - werner@suse.de
|
||||||
|
|
||||||
|
- pmap: get and ignore Anonymous tag in smaps (bnc#656826)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Oct 29 12:17:40 CEST 2010 - werner@suse.de
|
Fri Oct 29 12:17:40 CEST 2010 - werner@suse.de
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user