Skip to content

Conversation

@nickanderson
Copy link
Member

Ticket: CFE-4335
Changelog: AIX watchdog now handles stale pids

Code uses /proc opportunistically only if it exists; this improves
accuracy for systems with /proc and doesn't affect other systems.
(Turns out this doesn't matter as the template is only for AIX which
does have /proc)

This leaves in place a race condition if many watchdog processes are
started in very short succession, since the pidfile is not atomically
checked and updated. For purposes of the watchdog this is probably good
enough. (See https://stackoverflow.com/a/688365/5419599 for more on
this.)

(cherry picked from commit f53436b)

Ticket: CFE-4335
Changelog: AIX watchdog now handles stale pids

Code uses /proc opportunistically only if it exists; this improves
accuracy for systems with /proc and doesn't affect other systems.
(Turns out this doesn't matter as the template is only for AIX which
does have /proc)

This leaves in place a race condition if many watchdog processes are
started in very short succession, since the pidfile is not atomically
checked and updated.  For purposes of the watchdog this is probably good
enough.  (See https://stackoverflow.com/a/688365/5419599 for more on
this.)

(cherry picked from commit f53436b)
@nickanderson nickanderson merged commit 2ac8150 into cfengine:3.21.x Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants