RHEL8: bash -c 'exit 2 & wait $!' command took a long time to return

Solution Verified - Updated -

Issue

On RHEL8 specific bash script took longer to return when ulimit -u set a large or unlimited value.

time bash -c 'exit 2 & wait $!'

Environment

  • HP Superdome Flex
  • RHEL 8.1
  • bash-4.4.19-10

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