@user5047085 'if you write to the named pipe once, it seems to stop working after that'. If you open the pipe with O_RDWR (not O_RDONLY) it will keep working.