Run input file with pipe cmdlines will get nothing output.

    crash> p cpu_info:0 | grep 'x86 ='
      x86 = 0x19,
    crash> cat crashrc
    p cpu_info:0 | grep 'x86 ='
    p cpu_info:0 | grep 'x86 ='
    crash> < crashrc
    crash> p cpu_info:0 | grep 'x86 ='
      x86 = 0x19,
    crash> p cpu_info:0 | grep 'x86 ='

    crash>

Signed-off-by: neilfsun <[email protected]>
Signed-off-by: Feng Sun <[email protected]>
---
 cmdline.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cmdline.c b/cmdline.c
index 65da04c..4add548 100644
--- a/cmdline.c
+++ b/cmdline.c
@@ -1285,6 +1285,8 @@ restore_ifile_sanity(void)
                close_tmpfile2();
        }
 
+       wait_for_children(ALL_CHILDREN);
+
        restore_gdb_sanity();
 
        free_all_bufs();
-- 
2.50.1
--
Crash-utility mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://${domain_name}/admin/lists/devel.lists.crash-utility.osci.io/
Contribution Guidelines: https://github.com/crash-utility/crash/wiki

Reply via email to