diff options
Diffstat (limited to 'scripts/kconfig/mconf.c')
-rw-r--r-- | scripts/kconfig/mconf.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c index adba1141b..c3a837a14 100644 --- a/scripts/kconfig/mconf.c +++ b/scripts/kconfig/mconf.c | |||
@@ -482,7 +482,8 @@ static int exec_conf(void) | |||
482 | 482 | ||
483 | *argptr++ = NULL; | 483 | *argptr++ = NULL; |
484 | 484 | ||
485 | pipe(pipefd); | 485 | if (pipe(pipefd)) |
486 | _exit(EXIT_FAILURE); | ||
486 | pid = fork(); | 487 | pid = fork(); |
487 | if (pid == 0) { | 488 | if (pid == 0) { |
488 | sigprocmask(SIG_SETMASK, &osset, NULL); | 489 | sigprocmask(SIG_SETMASK, &osset, NULL); |
@@ -846,9 +847,11 @@ static void conf(struct menu *menu) | |||
846 | static void show_textbox(const char *title, const char *text, int r, int c) | 847 | static void show_textbox(const char *title, const char *text, int r, int c) |
847 | { | 848 | { |
848 | int fd; | 849 | int fd; |
850 | int len = strlen(text); | ||
849 | 851 | ||
850 | fd = creat(".help.tmp", 0777); | 852 | fd = creat(".help.tmp", 0777); |
851 | write(fd, text, strlen(text)); | 853 | if (write(fd, text, len) != len) |
854 | exit(1); | ||
852 | close(fd); | 855 | close(fd); |
853 | show_file(".help.tmp", title, r, c); | 856 | show_file(".help.tmp", title, r, c); |
854 | unlink(".help.tmp"); | 857 | unlink(".help.tmp"); |