From 1580937874b35350c0ff5c2a72b2540d7ec28378 Mon Sep 17 00:00:00 2001
From: Sverker Eriksson
Date: Tue, 15 Feb 2011 14:48:08 +0100
Subject: Allow unexpected driver input event in driver_SUITE:smp_select
epoll on Linux has been seen to sometimes trigger unexpected
events. Most of the time these events are filtered by erl_check_io,
but may slip up to the driver in cases when fd's are reused.
Also made clear in driver docs that spurious events may happen.
---
erts/doc/src/driver_entry.xml | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
(limited to 'erts/doc')
diff --git a/erts/doc/src/driver_entry.xml b/erts/doc/src/driver_entry.xml
index dd949d4048..7d1585f483 100644
--- a/erts/doc/src/driver_entry.xml
+++ b/erts/doc/src/driver_entry.xml
@@ -4,7 +4,7 @@
- 20012010
+ 20012011
Ericsson AB. All Rights Reserved.
@@ -219,6 +219,10 @@ typedef struct erl_drv_entry {
completes, write to the pipe (use SetEvent on
Windows), this will make the emulator call
ready_input or ready_output.
+ Spurious events may happen. That is, calls to ready_input
+ or ready_output even though no real events are signaled. In
+ reality it should be rare (and OS dependant), but a robust driver
+ must nevertheless be able to handle such cases.
char *driver_name
-
--
cgit v1.2.3