CVS Commit kernel

Mike Tremaine <[email protected]>
Newsgroups gmane.comp.log.logwatch.devel
Message-ID <[email protected]>
[mgt@dwarfstar services]$ cvs diff kernel
Index: kernel
===================================================================
RCS file: /var/cvs/logwatch/scripts/services/kernel,v
retrieving revision 1.33
diff -r1.33 kernel
39a40
 > my %OOM = ();
68a70,71
 >    } elsif ($ThisLine =~ /Out of memory: Killed process \d+ \((.*)\)/) {
 >       $OOM{$1}++
74a78,79
 >       # filter out error_exit in stack traces caused by OOM conditions
 >       $SkipError = 1 if $ThisLine =~ /\[<[\da-f]+>\] error_exit\+0x/;
135a141,147
 > if (keys %OOM) {
 >    print "\nWARNING:  Out of memory killer killed these executables\n";
 >    foreach my $Thisone ( sort {$a cmp $b} keys %OOM ) {
 >       print "   $Thisone :  $OOM{$Thisone} Time(s)\n";
 >    }
 > }
 >


OOM patch from Orion Poplawsk - Thanks!

-Mike
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.