diff options
Diffstat (limited to 'src/m_loop.c')
-rw-r--r-- | src/m_loop.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/m_loop.c b/src/m_loop.c index 41c9e36..3762aac 100644 --- a/src/m_loop.c +++ b/src/m_loop.c @@ -15,6 +15,7 @@ #include <stdlib.h> #include <fcntl.h> #include <unistd.h> +#include <signal.h> #include <limits.h> #include "d_define.h" @@ -25,6 +26,7 @@ #include "s_com.h" #include "s_lpipes.h" #include "s_line.h" +#include "c_init.h" #include "u_utils.h" #include "u_parse.h" #include "u_vars.h" @@ -132,9 +134,7 @@ uint8_t gnl = 1; while (gnl > 0) { - if (fd == STDIN_FILENO) - m_prompt_psx(1, msh); - gnl = get_next_line(fd, &line); + gnl = c_gnl(fd, &line, 1, msh); m_delete_comments(line); if (line[0] != C_NUL) { |