diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2019-02-01 00:30:07 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2019-02-01 00:30:07 +0000 |
commit | d4eb8bc81bd3af8d9331e35cad5e305407ee4c3f (patch) | |
tree | 45ee730659073bc318b9e75e983d9af2cfedfdcd | |
parent | 6f9dc69704211a6123b225036bffb46c1a2d6e83 (diff) | |
download | s6-d4eb8bc81bd3af8d9331e35cad5e305407ee4c3f.tar.xz |
The ftrig1 must be read nonblocking by s6-ftrigrd, duh!
GOD WHY AM I SUCH AN IDIOT
-rw-r--r-- | src/libs6/ftrig1_make.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libs6/ftrig1_make.c b/src/libs6/ftrig1_make.c index 2c224e5..16995d4 100644 --- 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 ; |