common CHANGE if process existence check fails, assume it exists
Otherwise we can have a process that is not authorized
to check the existence of the process, it assumes it
does not exist and clears whatever connection data it
has the permission for, resulting in the other process
crashing.
@@ -1900,7 +1900,8 @@ sr_process_exists(pid_t pid)
}
if (errno != ESRCH) {
- SR_LOG_WRN("Failed to check existence of process with PID %ld (%s).", (long)pid, strerror(errno));
+ SR_LOG_INF("Failed to check existence of process with PID %ld (%s).", (long)pid, strerror(errno));
+ return 1;
}
return 0;
