io-event 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dd0859ac56f4bcd713026e8e7faa0547ec57d195c35abe8d6bcfa77dda89f25d
4
- data.tar.gz: 1d6c6debea4d7a822f383e5d3b7c1ed0698b5928b2637ad65069b0798ea557d8
3
+ metadata.gz: 66b02920cb810ad1ae4c312add97954e801c4f774a22cbaa278572a2985fdf2d
4
+ data.tar.gz: daa403e0c8fdd4d5849b6d984ba65613d9d621724abc41a1201598cfb94004b1
5
5
  SHA512:
6
- metadata.gz: 2edfbfddcecac51db0093e30df9b04ac49fceb2cef189b8d46cfecc564ac47f3ef4c1680632cfb4ab0266e6529472764dc6ac81b0ae715f0b4a7707e8c4d9acd
7
- data.tar.gz: a2bb38d0bf5a7cde138c94f2cd799be2a184b035c70e88e24f32dca91e20051473594fea7883c223ceb612e71beb499f9d81ef6335e4469f313b0de6fd31947b
6
+ metadata.gz: d5ad6dc3b027d03c2cf97d96e89c37b01f80e7a8f2e2437c4add9958076a877f85ba01dd188829dec3f798b4608cc40ac8d9f755465a799bdbfe4d130e09a0eb
7
+ data.tar.gz: 2a312b4ea5fc8d785a1233c087010608ca82e3834b198fbd08bb66a0ef88b3746d2da04b457841a4a848a35eeee5dc31c274a7a8b2da11f1f87ebe24ce694f0b
data/ext/io/event/event.c CHANGED
@@ -24,7 +24,7 @@
24
24
  VALUE IO_Event = Qnil;
25
25
  VALUE IO_Event_Selector = Qnil;
26
26
 
27
- void Init_IO_Event()
27
+ void Init_IO_Event(void)
28
28
  {
29
29
  #ifdef HAVE_RB_EXT_RACTOR_SAFE
30
30
  rb_ext_ractor_safe(true);
data/ext/io/event/event.h CHANGED
@@ -24,7 +24,7 @@
24
24
 
25
25
  #include "extconf.h"
26
26
 
27
- void Init_IO_Event();
27
+ void Init_IO_Event(void);
28
28
 
29
29
  #ifdef HAVE_LIBURING_H
30
30
  #include "selector/uring.h"
@@ -380,10 +380,10 @@ VALUE io_read_loop(VALUE _arguments) {
380
380
  length -= result;
381
381
  } else if (result == 0) {
382
382
  break;
383
- } else if (length > 0 && IO_Event_try_again(-result)) {
383
+ } else if (length > 0 && IO_Event_try_again(errno)) {
384
384
  IO_Event_Selector_EPoll_io_wait(arguments->self, arguments->fiber, arguments->io, RB_INT2NUM(IO_EVENT_READABLE));
385
385
  } else {
386
- return rb_fiber_scheduler_io_result(-1, -result);
386
+ return rb_fiber_scheduler_io_result(-1, errno);
387
387
  }
388
388
  }
389
389
 
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module IO::Event
22
- VERSION = "0.3.1"
22
+ VERSION = "0.3.2"
23
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: io-event
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams