Reading from character devices on unix

Einar Karttunen <>
Fri Jun 4 01:15:41 CEST 2004


On 04.06 01:00, Einar Karttunen wrote:
> Reading from character devices seems to fail on unix with 
> {error, eisdir}. Can be repeated with e.g.
> file:open("/dev/zero", []). This seems to be caused by
> erts/emulator/drivers/unix/unix_efile.c line 747:

It seems that things have changed with R9C-1 and OTP-4992.

What would go wrong if opening devices would be allowed?
There are probably some issues, if the /dev/null workaround
was needed...

- Einar Karttunen



More information about the erlang-questions mailing list