diff options
-rw-r--r-- | source3/utils/regedit.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/utils/regedit.c b/source3/utils/regedit.c index 8fca96bd18..5b7885ca3e 100644 --- a/source3/utils/regedit.c +++ b/source3/utils/regedit.c @@ -567,6 +567,12 @@ int regedit_getch(void) return c; } +static void regedit_panic_handler(const char *msg) +{ + endwin(); + smb_panic_s3(msg); +} + static void display_window(TALLOC_CTX *mem_ctx, struct registry_context *ctx) { struct regedit *regedit; @@ -579,6 +585,8 @@ static void display_window(TALLOC_CTX *mem_ctx, struct registry_context *ctx) cbreak(); noecho(); + fault_configure(regedit_panic_handler); + colors = has_colors(); if (colors) { start_color(); |