Trigger file desciptor restart condition only in /bin/ dirs #3
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Resolution to issue #1 was a bit too aggressive on closer inpsection. With it we introduced behavior where any open file descriptor listed by an
lsofcommand would trigger a system reboot. This would frequently include file descriptors for memory-backed anonymous files in/memfdand shared memory objects in/dev/shmwhich weren't our concern in #1. We care about binaries such asdockerdandzabbix_agent2still running in old versions via open file descriptors.Let's reduce the list of
lsofresults: As a good enough approximation we can begin caring only about file descriptors that point to a path that includes string/s?bin/wheres?is supposed to mean an optional characters. This will cover/usr/sbin/,/usr/local/bin/etc. and should get us most of the way there for what the intent behind #1 was.