]> sourceware.org Git - systemtap.git/commitdiff
PR17395: Add breaks to is_valid_pid error switch
authorJosh Stone <jistone@redhat.com>
Mon, 15 Sep 2014 19:35:22 +0000 (12:35 -0700)
committerJosh Stone <jistone@redhat.com>
Mon, 15 Sep 2014 19:35:22 +0000 (12:35 -0700)
util.cxx

index db1efea9c831ee123112af967e1ddc590aca8c01..8a76133429fbedca4e69520fa9c947931374edcf 100644 (file)
--- a/util.cxx
+++ b/util.cxx
@@ -1118,10 +1118,13 @@ is_valid_pid (pid_t pid, string& err_msg)
       {
         case ESRCH:
           err_msg = "pid given does not correspond to a running process";
+          break;
         case EPERM:
           err_msg = "invalid permissions for signalling given pid";
+          break;
         default:
           err_msg = "invalid pid";
+          break;
       }
       return false;
     }
This page took 0.028452 seconds and 5 git commands to generate.