The flock command does not time out in the rpm scriptlet in Red Hat Enterprise Linux 8

Solution Unverified - Updated -

Issue

  • The flock command is used in the rpm scriptlet of a custom rpm package.
  • The timeout value was given with -w option of the flock command, which expects that it fails if the lock can not be acquired with the specified period.
  • But the timeout didn't happen, and the rpm command 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content