hapostgres / pg_auto_failover

Postgres extension and service for automated failover and high-availability
Other
1.07k stars 113 forks source link

Fix check for negative pid #888

Closed danielgustafsson closed 2 years ago

danielgustafsson commented 2 years ago

The pid variable is a pointer, and pointers cannot be negative. Fix the check to test the value of the pid rather than the address of the pointer.