@ai-ecoverse/slicc-kernel 1.26.0 → 1.26.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5154,7 +5154,8 @@ var init_wasi_host = __esm({
5154
5154
  try {
5155
5155
  return this.o.kernel.sys.write(fd, data, { nonblock: e.nonblock });
5156
5156
  } catch (err) {
5157
- if (err.code === "EPIPE") throw new WasiExit(SIGPIPE_EXIT);
5157
+ const broken = err.code === "EPIPE";
5158
+ if (broken && this.fds.kind(fd, e) !== "socket") throw new WasiExit(SIGPIPE_EXIT);
5158
5159
  throw err;
5159
5160
  }
5160
5161
  }