ipsec gre: Don't cache bad ovs-monitor-ipsec pid values.
[sliver-openvswitch.git] / lib / netdev-vport.c
index d2c2672..836069f 100644 (file)
@@ -682,7 +682,7 @@ parse_tunnel_config(const char *name, const char *type,
 
     if (is_ipsec) {
         static pid_t pid = 0;
-        if (pid == 0) {
+        if (pid <= 0) {
             char *file_name = xasprintf("%s/%s", ovs_rundir(),
                                         "ovs-monitor-ipsec.pid");
             pid = read_pidfile(file_name);