diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-10-04 16:08:19 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-10-04 16:08:19 +0200 |
commit | d1602327475bad9da4795ddf9326507161b08b7a (patch) | |
tree | 34e7c4c28f80509d70b3b4ef38d2867e71975331 /sys/src/cmd/mothra/mothra.h | |
parent | 8c1d4604db54021b774b17eb7440685b4638163b (diff) |
mothra: run page in own note group, close unneeded filedescriptors after forking
running page in own note group avoids killing it when we
exit mothra.
copypaste dupfds() function from page and use it to close
unneeded file descriptors.
Diffstat (limited to 'sys/src/cmd/mothra/mothra.h')
-rw-r--r-- | sys/src/cmd/mothra/mothra.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/src/cmd/mothra/mothra.h b/sys/src/cmd/mothra/mothra.h index 2588d99f8..b38391338 100644 --- a/sys/src/cmd/mothra/mothra.h +++ b/sys/src/cmd/mothra/mothra.h @@ -87,6 +87,7 @@ Url *selurl(char *); void getpix(Rtext *, Www *); ulong countpix(void *p); void freepix(void *p); +void dupfds(int fd, ...); int pipeline(char *, int); void getfonts(void); void *emalloc(int); |