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

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
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 © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].