Re: Don't allow stdout and stderr from extfs scripts pollute the screen.



Pavel Roskin wrote:
Hello!


patch below prevents stderr from extfs scripts pollute the screen.

Applied as is.  Thank you very much!


Bad news.  After your patch extfs gets stuck on output that exceeds 4
kilobytes.  The example is attached.  Try "cd lslR#lslR"

It looks like mc doesn't accept more data, so whatever program is trying
to write to stdout (awk in this case) gets stuck, and you have to kill it.

The problem can be observed on RedHat 8.0.

This is common problem of open_error_pipe ().

/* Creates a pipe to hold standard error for a later analysis. */
/* The pipe can hold 4096 bytes. Make sure no more is written */
/* or a deadlock might occur. */
void open_error_pipe (void)

So I will comment out all of open_error_pipe() and close_error_pipe () in the extfs.c and possible sfs.c.


--
Regards,
Andrew V. Samoilov






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]