]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Revert "src/ceph-crash.in: remove unused frame in handler()"
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 24 Feb 2022 16:39:10 +0000 (17:39 +0100)
committerTim Serong <tserong@suse.com>
Wed, 9 Nov 2022 02:57:16 +0000 (13:57 +1100)
This reverts commit 432c766a99f70884049bf7a1f268287a5a809777.

unused but required:

```
Traceback (most recent call last):
File "/usr/bin/ceph-crash", line 102, in <module>
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 <gabrioux@redhat.com>
(cherry picked from commit 02e8e7d6e6d31b4735115f7820e015fc54997d9f)

src/ceph-crash.in

index ae0e4f516464fd4d63a96d497cfe3d7545f89eda..4502618fcf7aacc0827df17d082810148c7ac371 100755 (executable)
@@ -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)