diff options
author | Sverker Eriksson <[email protected]> | 2017-02-09 17:30:30 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2017-02-09 17:30:30 +0100 |
commit | a8d5234c77634df9522727ff200cef4fcab49c22 (patch) | |
tree | 51c3d51eaab4510928d0439265eb0613bac3a68d /erts/emulator/sys/unix/sys.c | |
parent | d85e74e0c0e4bc66c875e2fd5f54d89255df0047 (diff) | |
download | otp-a8d5234c77634df9522727ff200cef4fcab49c22.tar.gz otp-a8d5234c77634df9522727ff200cef4fcab49c22.tar.bz2 otp-a8d5234c77634df9522727ff200cef4fcab49c22.zip |
erts: Change return value for enif_select
to negative int as error and positive as success.
Diffstat (limited to 'erts/emulator/sys/unix/sys.c')
-rw-r--r-- | erts/emulator/sys/unix/sys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/sys/unix/sys.c b/erts/emulator/sys/unix/sys.c index 4843ee4ba2..f4bdc129e1 100644 --- a/erts/emulator/sys/unix/sys.c +++ b/erts/emulator/sys/unix/sys.c @@ -161,7 +161,7 @@ int erts_use_kernel_poll = 0; struct { int (*select)(ErlDrvPort, ErlDrvEvent, int, int); - enum ErlNifSelectReturn (*enif_select)(ErlNifEnv*, ErlNifEvent, enum ErlNifSelectFlags, void*, const ErlNifPid*, Eterm); + int (*enif_select)(ErlNifEnv*, ErlNifEvent, enum ErlNifSelectFlags, void*, const ErlNifPid*, Eterm); int (*event)(ErlDrvPort, ErlDrvEvent, ErlDrvEventData); void (*check_io_as_interrupt)(void); void (*check_io_interrupt)(int); |