commit 734e87d6cb111bc419b1bbf25a65a3e0e6dfae27
parent 7f4daaa566a5aca486f081eaed7e706657347fca
Author: glenda <glenda@9front.local>
Date: Thu, 22 Jul 2021 22:04:30 +0000
fs.c: regenerate page on write to file
Diffstat:
3 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/fs.c b/fs.c
@@ -47,7 +47,6 @@ fs_write(Req *r)
aux->data->n = n;
r->ofcall.count = r->ifcall.count;
respond(r, nil);
- return;
} else respond(r, "fs_write: f->aux is nil");
}
diff --git a/richterm.c b/richterm.c
@@ -10,6 +10,8 @@
#include "richterm.h"
+Rich rich;
+
int hostpid = -1;
Channel *pidchan;
@@ -19,7 +21,6 @@ Fsctl *fsctl;
Fonts fonts;
-void generatepage(Rich *);
void shutdown(void);
void send_interrupt(void);
void runcmd(void *);
@@ -82,7 +83,6 @@ threadmain(int argc, char **argv)
{
Object *olast;
char *ov;
- Rich rich;
int i;
Mousectl *mctl;
Keyboardctl *kctl;
@@ -97,7 +97,6 @@ threadmain(int argc, char **argv)
usage();
} ARGEND
-
if(rfork(RFENVG) < 0)
sysfatal("rfork: %r");
atexit(shutdown);
diff --git a/richterm.h b/richterm.h
@@ -62,6 +62,10 @@ struct Rich {
Page page;
};
+extern Rich rich;
+
+void generatepage(Rich *);
+
typedef struct Devfsctl Devfsctl;
struct Devfsctl {