Plan 9 from Bell Labs’s /n/sources/plan9/sys/src/cmd/fossil/deadlock

Copyright © 2009 Alcatel-Lucent.
Distributed under the Lucent Public License version 1.02.
Download the Plan 9 distribution.


#!/bin/rc

rfork e

x=($*)
if(~ $#x 0){
	x=`{ps |awk '$NF=="8.fossil" {print $2}'}
	ps | awk '$7=="8.fossil"'
}
if(~ $#x 0){
	x=`{ps | awk '$NF=="fossil" {print $2}'}
	ps -a | awk '$7 == "fossil"'
}

y=$x^', '
y=$"y
echo 'include("/sys/src/cmd/fossil/fossil-acid");
print("--XXX\n");
deadlocklist({' ^ $y ^ '});
print("--YYY\n");' |
	acid $x(1) |
	sed -n '/--XXX/,/--YYY/p' |
	sed 's/acid: //g' |
	grep -v '^--'


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2009 Alcatel-Lucent. All Rights Reserved.
Comments to webmaster@plan9.bell-labs.com.