Updating link to change in openSUSE:Factory/procps revision 26.0
OBS-URL: https://build.opensuse.org/package/show/Base:System/procps?expand=0&rev=7705f15e4a05f64cef3b656942c3940d
This commit is contained in:
parent
31f5f757db
commit
19d1dafca3
18
procps-3.2.8-fdleak.dif
Normal file
18
procps-3.2.8-fdleak.dif
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
--- vmstat.c
|
||||||
|
+++ vmstat.c 2009-09-10 10:10:17.509902189 +0200
|
||||||
|
@@ -413,13 +413,12 @@ static void slabheader(void){
|
||||||
|
////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
static void slabformat (void){
|
||||||
|
- FILE *fSlab;
|
||||||
|
+ struct stat fSlab;
|
||||||
|
struct slab_cache *slabs;
|
||||||
|
unsigned long nSlab,i,j,k;
|
||||||
|
const char format[]="%-24s %6u %6u %6u %6u\n";
|
||||||
|
|
||||||
|
- fSlab=fopen("/proc/slabinfo", "rb");
|
||||||
|
- if(!fSlab){
|
||||||
|
+ if(stat("/proc/slabinfo", &fSlab) < 0){
|
||||||
|
fprintf(stderr, "Your kernel doesn't support slabinfo.\n");
|
||||||
|
return;
|
||||||
|
}
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Sep 10 10:13:00 CEST 2009 - werner@suse.de
|
||||||
|
|
||||||
|
- Yet an other fd leak found by David Binderman (bnc#536207)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Aug 19 14:45:52 CEST 2009 - werner@suse.de
|
Wed Aug 19 14:45:52 CEST 2009 - werner@suse.de
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ Group: System/Monitoring
|
|||||||
PreReq: %fillup_prereq %insserv_prereq
|
PreReq: %fillup_prereq %insserv_prereq
|
||||||
AutoReqProv: on
|
AutoReqProv: on
|
||||||
Version: 3.2.8
|
Version: 3.2.8
|
||||||
Release: 4
|
Release: 5
|
||||||
Summary: ps utilities for /proc
|
Summary: ps utilities for /proc
|
||||||
Provides: ps
|
Provides: ps
|
||||||
Obsoletes: ps
|
Obsoletes: ps
|
||||||
@ -62,6 +62,7 @@ Patch25: procps-3.2.7-cgroups_flag.diff
|
|||||||
Patch26: procps-3.2.8-pgrep_coption.dif
|
Patch26: procps-3.2.8-pgrep_coption.dif
|
||||||
Patch27: procps-3.2.7-terabyte.dif
|
Patch27: procps-3.2.7-terabyte.dif
|
||||||
Patch28: procps-3.2.6-xen.dif
|
Patch28: procps-3.2.6-xen.dif
|
||||||
|
Patch29: procps-3.2.8-fdleak.dif
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -118,6 +119,7 @@ Authors:
|
|||||||
%patch26
|
%patch26
|
||||||
%patch27
|
%patch27
|
||||||
%patch28
|
%patch28
|
||||||
|
%patch29
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make CFLAGS="-Wall -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 $RPM_OPT_FLAGS -pipe" \
|
make CFLAGS="-Wall -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 $RPM_OPT_FLAGS -pipe" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user