]> code.ossystems Code Review - openembedded-core.git/commit
file: fix close_on_exec for multithreaded decompression
authorChangqing Li <changqing.li@windriver.com>
Tue, 24 Aug 2021 09:20:49 +0000 (17:20 +0800)
committerAnuj Mittal <anuj.mittal@intel.com>
Thu, 26 Aug 2021 08:53:12 +0000 (16:53 +0800)
commit167814b81ddac3934077b0ee91c0c6015fc02bfe
tree611d1e996639cfc792fe17281daad1f61a444bd8
parent9b39e14809da170634ef99e611d26e6b5497e793
file: fix close_on_exec for multithreaded decompression

It is not safe to call the 'file' command from multiple threads. When a
file is checked with multiple threads in parallel, the file descriptors
might get shared which makes the pipe handling lock up, leading to lock
up in rpmbuild. And may lead to rarely deadlock on random recipes's
do_package task.

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
meta/recipes-devtools/file/file_5.39.bb
meta/recipes-devtools/file/files/0001-Fix-close_on_exec-multithreaded-decompression-issue.patch [new file with mode: 0644]