From: Guillaume Abrioux Date: Thu, 24 Feb 2022 16:39:10 +0000 (+0100) Subject: Revert "src/ceph-crash.in: remove unused frame in handler()" X-Git-Tag: v18.0.0~23^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=02e8e7d6e6d31b4735115f7820e015fc54997d9f;p=ceph.git Revert "src/ceph-crash.in: remove unused frame in handler()" This reverts commit 432c766a99f70884049bf7a1f268287a5a809777. unused but required: ``` Traceback (most recent call last): File "/usr/bin/ceph-crash", line 102, in main() File "/usr/bin/ceph-crash", line 98, in main time.sleep(args.delay * 60) TypeError: handler() takes exactly 1 argument (2 given) ``` Fixes: https://tracker.ceph.com/issues/54422 Signed-off-by: Guillaume Abrioux --- diff --git a/src/ceph-crash.in b/src/ceph-crash.in index ae0e4f51646..4502618fcf7 100755 --- a/src/ceph-crash.in +++ b/src/ceph-crash.in @@ -79,7 +79,7 @@ def scrape_path(path): (metapath, p, os.path.join('posted/', p)) ) -def handler(signum): +def handler(signum, frame): print('*** Interrupted with signal %d ***' % signum) sys.exit(0)