diff options
author | sandman <sandman@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2002-07-30 23:13:51 +0000 |
---|---|---|
committer | sandman <sandman@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2002-07-30 23:13:51 +0000 |
commit | f8ff3741386462460ce76a1e509b42e5c854dd6e (patch) | |
tree | 909f63e9b6ff6b4f03f946c7017feff8a3525adc /shell | |
parent | 1e14b409673d356995fe5b42f76419ded857370c (diff) | |
download | busybox-w32-f8ff3741386462460ce76a1e509b42e5c854dd6e.tar.gz busybox-w32-f8ff3741386462460ce76a1e509b42e5c854dd6e.tar.bz2 busybox-w32-f8ff3741386462460ce76a1e509b42e5c854dd6e.zip |
Fixed a timing bug which occured when bb ash is run in a rxvt on the
HP iPAQ. Sometimes we get a SIGWINCH and want to print the prompt, although
the prompt is not yet initialised (0) .. so just don't print a prompt
as long as the prompt string is 0
git-svn-id: svn://busybox.net/trunk/busybox@5124 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'shell')
-rw-r--r-- | shell/cmdedit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/cmdedit.c b/shell/cmdedit.c index 5cbc81131..eee32131a 100644 --- a/shell/cmdedit.c +++ b/shell/cmdedit.c | |||
@@ -275,7 +275,8 @@ static void goto_new_line(void) | |||
275 | 275 | ||
276 | static inline void out1str(const char *s) | 276 | static inline void out1str(const char *s) |
277 | { | 277 | { |
278 | fputs(s, stdout); | 278 | if ( s ) |
279 | fputs(s, stdout); | ||
279 | } | 280 | } |
280 | static inline void beep(void) | 281 | static inline void beep(void) |
281 | { | 282 | { |