s6

Mirror/fork of https://skarnet.org/software/s6/
git clone https://ccx.te2000.cz/git/s6
Log | Files | Refs | README | LICENSE

commit d4eb8bc81bd3af8d9331e35cad5e305407ee4c3f
parent 6f9dc69704211a6123b225036bffb46c1a2d6e83
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date:   Fri,  1 Feb 2019 00:30:07 +0000

 The ftrig1 must be read nonblocking by s6-ftrigrd, duh!

 GOD WHY AM I SUCH AN IDIOT

Diffstat:
Msrc/libs6/ftrig1_make.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/libs6/ftrig1_make.c b/src/libs6/ftrig1_make.c @@ -29,6 +29,7 @@ int ftrig1_make (ftrig1_t *f, char const *path) memcpy(tmp + pathlen + FTRIG1_PREFIXLEN + 28, ":XXXXXX", 8) ; ff.fd = mkptemp(tmp) ; if (ff.fd == -1) return 0 ; + if (ndelay_on(ff.fd) == -1) goto err1 ; ff.fdw = open_write(tmp) ; if (ff.fdw == -1) goto err1 ; if (!stralloc_ready(&ff.name, pathlen + FTRIG1_PREFIXLEN + 36)) goto err2 ;