ruby-lsapi 1.4 → 1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ext/lsapi/lsruby.c +1 -11
- metadata +1 -1
data/ext/lsapi/lsruby.c
CHANGED
@@ -194,7 +194,7 @@ static int lsapi_fork_child()
|
|
194
194
|
s_children = 0;
|
195
195
|
|
196
196
|
/* don't catch our signals */
|
197
|
-
|
197
|
+
sigaction( SIGCHLD, &old_child, 0 );
|
198
198
|
sigaction( SIGTERM, &old_term, 0 );
|
199
199
|
sigaction( SIGQUIT, &old_quit, 0 );
|
200
200
|
sigaction( SIGINT, &old_int, 0 );
|
@@ -482,8 +482,6 @@ static VALUE lsapi_read(int argc, VALUE *argv, VALUE self)
|
|
482
482
|
lsapi_data *data;
|
483
483
|
int n;
|
484
484
|
int remain;
|
485
|
-
fd_set readfds;
|
486
|
-
int fd;
|
487
485
|
char buff[8192];
|
488
486
|
|
489
487
|
if (rb_safe_level() >= 4 && !OBJ_TAINTED(self))
|
@@ -504,16 +502,8 @@ static VALUE lsapi_read(int argc, VALUE *argv, VALUE self)
|
|
504
502
|
}
|
505
503
|
str = rb_str_buf_new( remain );
|
506
504
|
OBJ_TAINT(str);
|
507
|
-
fd = data->req->m_fd;
|
508
505
|
while( remain > 0 )
|
509
506
|
{
|
510
|
-
FD_ZERO( &readfds );
|
511
|
-
FD_SET( fd, &readfds );
|
512
|
-
|
513
|
-
if (rb_thread_select(fd+1, &readfds, NULL, NULL, NULL) < 1)
|
514
|
-
{
|
515
|
-
return Qnil;
|
516
|
-
}
|
517
507
|
n = LSAPI_ReadReqBody_r(data->req, buff,
|
518
508
|
(remain > 8192)?8192:remain );
|
519
509
|
if ( n > 0 )
|
metadata
CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.8.11
|
|
3
3
|
specification_version: 1
|
4
4
|
name: ruby-lsapi
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: "1.
|
6
|
+
version: "1.5"
|
7
7
|
date: 2006-07-20 00:00:00 -04:00
|
8
8
|
summary: A ruby extension for fast communication with LiteSpeed Web Server.
|
9
9
|
require_paths:
|