X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fmemtest-cmd.py;fp=cmd%2Fmemtest-cmd.py;h=c4c531e22928c5c95cf03f6d75adaa3a7edd1c96;hb=7e1f05fe8b8d580d61c6a233ec1440adc248c97c;hp=245bfc99fb89ff4ecb95c0932032a537ceba8c63;hpb=3b470fc212045656fa3f565862785139e1d336b2;p=bup.git diff --git a/cmd/memtest-cmd.py b/cmd/memtest-cmd.py index 245bfc9..c4c531e 100755 --- a/cmd/memtest-cmd.py +++ b/cmd/memtest-cmd.py @@ -4,12 +4,16 @@ bup_python="$(dirname "$0")/bup-python" || exit $? exec "$bup_python" "$0" ${1+"$@"} """ # end of bup preamble + import sys, re, struct, time, resource + from bup import git, bloom, midx, options, _helpers -from bup.helpers import * +from bup.helpers import handle_ctrl_c + handle_ctrl_c() + _linux_warned = 0 def linux_memstat(): global _linux_warned