[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#942558: hurd: should return ENXIO instead of EIEIO in open()

Source: hurd
Version: 1:0.9.git20190331-8
Severity: important
Control: affects -1 s6

Dear Maintainer,

When calling open(fifo_fd, O_WRONLY | O_NONBLOCK) on an fifo file, which has
no reader, it should return ENXIO. But on Hurd, it returns EIEIO.

This causes s6 failed to start[1], as it expects an ENXIO.

The behaviour should be consistent with


> O_NONBLOCK is set, the named file is a FIFO, O_WRONLY is set,
> and no process has the file open for reading.

[1] it was discussed at

Shengjing Zhu

Reply to: