On Oct 20 12:18:07, t...@math.ethz.ch wrote: > On Tue, Oct 20, 2015 at 11:45:59AM +0200, Jan Stary wrote: > > My script(1) just got killed with > > > > script(15938): syscall 37 > > Can you provide a reproducible test case? What did you do?
Building firefox: make inside a script. > > Surely this is due to breaking a pledge(2), > > but grepping /usr/src/usr.bin/script for "pledge" > > does not reveal anything. > > Your tree is out of date: > > http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/script/script.c.diff?r1=1.30&r2=1.31&f=h Yes it is; sorry, must have forgotten. On Oct 20 13:38:04, sema...@openbsd.org wrote: > /usr/src/usr.bin/script/script.c: killpg(pgrp, SIGWINCH); > /usr/src/usr.bin/script/script.c: (void)kill(0, SIGTERM); > > The second one should be permitted with "stdio": it is a kill to self. > But the first one will be forbidden with the current peldge requests. > > This one is in handlesigwinch() function, which is an handler for > SIGWINCH signal, in order to "forward" a received signal to > subprocesses. > > So script(1) needs "proc" request to be able to do that. Makes perfect sense now, thanks. Jan