On Nov 23 13:17:43, [email protected] wrote:
> Declared usage() as __dead since it won't return, instructions() called
> a handrolled pager (/bin/cat) using fork which I replaced for a simple
> cicle of while(fgets) then fputs (greatly inspired, to not saying it was
> bluntly copied, by a previous patch sent by tedu@ for another application).
> After instructions() function is run then fish(6) only needs pledge "stdio".

On Nov 30 01:42:03, [email protected] wrote:
> slightly interesting pledge for fish:
> start with "stdio rpath proc exec" since it pipes instructions to a pager
> afterwards "stdio" is enough

- just put the six lines of instructions into the manpage where they belong
- remove fish.instr, remove instructions()
- make the pledge a straightforward "stdio"
 
This is what we did with quiz(6) before,
and what I'm gonna do next with wump(6) and every other game
which forks a PAGER just to spit out a help message.
http://marc.info/?l=openbsd-tech&m=144576581513053&w=2

        Jan

Reply via email to