The flock command does not time out in the rpm scriptlet in Red Hat Enterprise Linux 8
Issue
- The
flockcommand is used in therpmscriptlet of a customrpmpackage. - The timeout value was given with
-w optionof theflockcommand, which expects that it fails if the lock can not be acquired with the specified period. - But the timeout didn't happen, and the
rpmcommand got hang indefinitely.
Environment
Red Hat Enterprise Linux 8
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.