Allow ApplyOomScoreAdj to specify what PID to adjust for.

This commit is contained in:
Victor Marmol
2015-02-19 17:16:31 -08:00
parent 5eb71a1877
commit 2d1a8d0da0
3 changed files with 16 additions and 6 deletions

View File

@@ -89,7 +89,7 @@ func (s *ProxyServer) AddFlags(fs *pflag.FlagSet) {
// Run runs the specified ProxyServer. This should never exit.
func (s *ProxyServer) Run(_ []string) error {
if err := util.ApplyOomScoreAdj(s.OOMScoreAdj); err != nil {
if err := util.ApplyOomScoreAdj(0, s.OOMScoreAdj); err != nil {
glog.Info(err)
}