[Tools] Added stdout protection during dlopen 47/297847/2
authorPiotr Kosko/Tizen API (PLT) /SRPOL/Engineer/Samsung Electronics <p.kosko@samsung.com>
Fri, 25 Aug 2023 11:32:02 +0000 (13:32 +0200)
committerPiotr Kosko/Tizen API (PLT) /SRPOL/Engineer/Samsung Electronics <p.kosko@samsung.com>
Fri, 25 Aug 2023 11:38:47 +0000 (13:38 +0200)
commit4dfe162b3cfc4b07426b6d060390baa1f7874b56
tree0b21b2e7a3f3c4328c501e2255ee2e0c00e24822
parent2a81ffc9c1e08238fd621e0654298ad632ead6de
[Tools] Added stdout protection during dlopen

[Issue] During dlopen libraries loads other libraries. If any library in
the chain generates some output to stdout, it corrupts the json file.
To prevent this problem, we add stdout redirect during dlopen operation.

[Verification] Code compiles without errors; plugins.json file is
properly generated.

Change-Id: Ic46e5f1b8d90b2de0ffe1065f2fffaa75127de19
src/tool/desc_gentool.cc