[Toaster] [PATCH 1/1] add a -t to the lsof command so that it is faster and it won't fail on esoteric filesystem mounts since it is just looking at processes.

brian avery avery.brian at gmail.com
Wed Feb 10 09:56:55 PST 2016


Signed-off-by: brian avery <avery.brian at gmail.com>
---
 bin/toaster | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/toaster b/bin/toaster
index 72eae64..89318f0 100755
--- a/bin/toaster
+++ b/bin/toaster
@@ -128,7 +128,7 @@ stop_bitbake() {
     BBSERVER=0.0.0.0:-1 bitbake -m
     unset BBSERVER
     # force stop any misbehaving bitbake server
-    lsof bitbake.lock | awk '{print $2}' | grep "[0-9]\+" | xargs -n1 -r kill
+    lsof -t bitbake.lock | awk '{print $2}' | grep "[0-9]\+" | xargs -n1 -r kill
 }
 
 verify_prereq() {
-- 
1.9.1



More information about the toaster mailing list