summaryrefslogtreecommitdiff
path: root/sys/src/cmd/p.c
diff options
context:
space:
mode:
authoraiju <aiju@phicode.de>2011-07-13 14:17:09 +0200
committeraiju <aiju@phicode.de>2011-07-13 14:17:09 +0200
commitdb0f050d2b65a5fe329cf9454720420cb2deb721 (patch)
treea018a55765531186d6a5c8eab00f41722d921e97 /sys/src/cmd/p.c
parentebe8f9460b6a3012c9c75d8479a3e427d5c04977 (diff)
fixed error handling in p, pr, sed, xd, yacc
Diffstat (limited to 'sys/src/cmd/p.c')
-rw-r--r--sys/src/cmd/p.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/src/cmd/p.c b/sys/src/cmd/p.c
index 9bc5cc471..4b3a713e3 100644
--- a/sys/src/cmd/p.c
+++ b/sys/src/cmd/p.c
@@ -21,7 +21,9 @@ main(int argc, char *argv[])
fprint(2, "p: can't open /dev/cons\n");
exits("missing /dev/cons");
}
+ Blethal(cons, nil);
Binit(&bout, 1, OWRITE);
+ Blethal(&bout, nil);
n = 0;
while(argc > 1) {
--argc; argv++;
@@ -54,6 +56,7 @@ printfile(int f)
b = malloc(sizeof(Biobuf));
Binit(b, f, OREAD);
+ Blethal(b, nil);
for(;;){
for(i=1; i <= pglen; i++) {
s = Brdline(b, '\n');