Skip to contentSkip to conversation

bitbake: also hide os.fork() deprecation warning

PATCH New Peter Marko 1 participant 1 message Feb 4

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bitbake: also hide os.fork() deprecation warning

From: Peter Marko <[email protected]>

Copied from bitbake-server/worker/layers. This is seen also for bitbake command invocations.

---
 bin/bitbake | 1 +
 1 file changed, 1 insertion(+)
bin/bitbake +1 -0
index a995bd665..2eb5f9103 100755
@@ -14,6 +14,7 @@ import os
 import sys
 import warnings
 warnings.simplefilter("default")
+warnings.filterwarnings("ignore", category=DeprecationWarning, message=".*use.of.fork.*may.lead.to.deadlocks.in.the.child.*")
 
 sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(__file__)),
                                 'lib'))