Fixup one more missing use of lb->f instead stdout when printing the
comma separator.
ChangeLog, util.c:
util.c (open_pager): Set SIGPIPE to be ignored, so that quitting out
of the pager doesn't blow away debugfs.
+2000-08-19 <tytso@valinux.com>
+
+ * util.c (open_pager): Set SIGPIPE to be ignored, so that quitting
+ out of the pager doesn't blow away debugfs.
+
2000-08-14 <tytso@valinux.com>
* debugfs.c (do_show_super_stats): Use list_super2() instead of
if (lb->first)
lb->first = 0;
else
- printf(", ");
+ fprintf(lb->f, ", ");
if (blockcnt == -1)
fprintf(lb->f, "(IND):%d", *blocknr);
else if (blockcnt == -2)
#include <ctype.h>
#include <string.h>
#include <time.h>
+#include <signal.h>
#include "debugfs.h"
FILE *outfile;
char *pager = getenv("PAGER");
+ signal(SIGPIPE, SIG_IGN);
if (!pager)
pager = "more";