mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* process.c (rb_syswait): thread kludge; should be fixed to
support native thread. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@2129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8f800a2452
commit
fb31afc5a2
4 changed files with 34 additions and 22 deletions
12
COPYING
12
COPYING
|
@ -17,22 +17,22 @@ You can redistribute it and/or modify it under either the terms of the GPL
|
||||||
b) use the modified software only within your corporation or
|
b) use the modified software only within your corporation or
|
||||||
organization.
|
organization.
|
||||||
|
|
||||||
c) rename any non-standard executables so the names do not conflict
|
c) give non-standard binaries non-standard names, with
|
||||||
with standard executables, which must also be provided.
|
instructions on where to get the original software distribution.
|
||||||
|
|
||||||
d) make other distribution arrangements with the author.
|
d) make other distribution arrangements with the author.
|
||||||
|
|
||||||
3. You may distribute the software in object code or executable
|
3. You may distribute the software in object code or binary form,
|
||||||
form, provided that you do at least ONE of the following:
|
provided that you do at least ONE of the following:
|
||||||
|
|
||||||
a) distribute the executables and library files of the software,
|
a) distribute the binaries and library files of the software,
|
||||||
together with instructions (in the manual page or equivalent)
|
together with instructions (in the manual page or equivalent)
|
||||||
on where to get the original distribution.
|
on where to get the original distribution.
|
||||||
|
|
||||||
b) accompany the distribution with the machine-readable source of
|
b) accompany the distribution with the machine-readable source of
|
||||||
the software.
|
the software.
|
||||||
|
|
||||||
c) give non-standard executables non-standard names, with
|
c) give non-standard binaries non-standard names, with
|
||||||
instructions on where to get the original software distribution.
|
instructions on where to get the original software distribution.
|
||||||
|
|
||||||
d) make other distribution arrangements with the author.
|
d) make other distribution arrangements with the author.
|
||||||
|
|
13
ChangeLog
13
ChangeLog
|
@ -2,15 +2,16 @@ Mon Feb 25 13:32:13 2002 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
|
||||||
|
|
||||||
* lib/shell.rb (Shell::expand_path): relative to @cwd.
|
* lib/shell.rb (Shell::expand_path): relative to @cwd.
|
||||||
|
|
||||||
Mon Jan 7 12:38:47 2002 Tanaka Akira <akr@m17n.org>
|
|
||||||
|
|
||||||
* lib/time.rb: fix unit tests before Unix Epoch.
|
|
||||||
|
|
||||||
Sun Feb 24 17:20:50 2002 Akinori MUSHA <knu@iDaemons.org>
|
Sun Feb 24 17:20:50 2002 Akinori MUSHA <knu@iDaemons.org>
|
||||||
|
|
||||||
* ext/digest/*/*.h: Merge from rough.
|
* ext/digest/*/*.h: Merge from rough.
|
||||||
- Avoid namespace pollution. (MD5_* -> rb_Digest_MD5_*, etc.)
|
- Avoid namespace pollution. (MD5_* -> rb_Digest_MD5_*, etc.)
|
||||||
|
|
||||||
|
Sat Feb 23 21:12:13 2002 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* process.c (rb_syswait): thread kludge; should be fixed to
|
||||||
|
support native thread.
|
||||||
|
|
||||||
Fri Feb 22 22:00:08 2002 Minero Aoki <aamine@loveruby.net>
|
Fri Feb 22 22:00:08 2002 Minero Aoki <aamine@loveruby.net>
|
||||||
|
|
||||||
* lib/net/protocol.rb: set read_timeout dynamically.
|
* lib/net/protocol.rb: set read_timeout dynamically.
|
||||||
|
@ -353,6 +354,10 @@ Mon Jan 7 14:38:51 2002 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
* object.c (convert_type): backport from 1.7 to avoid NameError
|
* object.c (convert_type): backport from 1.7 to avoid NameError
|
||||||
messages with -d option.
|
messages with -d option.
|
||||||
|
|
||||||
|
Mon Jan 7 12:38:47 2002 Tanaka Akira <akr@m17n.org>
|
||||||
|
|
||||||
|
* lib/time.rb: fix unit tests before Unix Epoch.
|
||||||
|
|
||||||
Mon Jan 7 12:38:47 2002 Tanaka Akira <akr@m17n.org>
|
Mon Jan 7 12:38:47 2002 Tanaka Akira <akr@m17n.org>
|
||||||
|
|
||||||
* lib/time.rb (Time#xmlschema): new optional argument
|
* lib/time.rb (Time#xmlschema): new optional argument
|
||||||
|
|
23
process.c
23
process.c
|
@ -588,29 +588,36 @@ void
|
||||||
rb_syswait(pid)
|
rb_syswait(pid)
|
||||||
int pid;
|
int pid;
|
||||||
{
|
{
|
||||||
|
static int overriding;
|
||||||
RETSIGTYPE (*hfunc)_((int)), (*qfunc)_((int)), (*ifunc)_((int));
|
RETSIGTYPE (*hfunc)_((int)), (*qfunc)_((int)), (*ifunc)_((int));
|
||||||
int status;
|
int status;
|
||||||
int i;
|
int i, hooked = Qfalse;
|
||||||
|
|
||||||
|
if (!overriding) {
|
||||||
#ifdef SIGHUP
|
#ifdef SIGHUP
|
||||||
hfunc = signal(SIGHUP, SIG_IGN);
|
hfunc = signal(SIGHUP, SIG_IGN);
|
||||||
#endif
|
#endif
|
||||||
#ifdef SIGQUIT
|
#ifdef SIGQUIT
|
||||||
qfunc = signal(SIGQUIT, SIG_IGN);
|
qfunc = signal(SIGQUIT, SIG_IGN);
|
||||||
#endif
|
#endif
|
||||||
ifunc = signal(SIGINT, SIG_IGN);
|
ifunc = signal(SIGINT, SIG_IGN);
|
||||||
|
overriding = Qtrue;
|
||||||
|
hooked = Qtrue;
|
||||||
|
}
|
||||||
|
|
||||||
do {
|
do {
|
||||||
i = rb_waitpid(pid, 0, &status);
|
i = rb_waitpid(pid, &status, 0);
|
||||||
} while (i == -1 && errno == EINTR);
|
} while (i == -1 && errno == EINTR);
|
||||||
|
|
||||||
|
if (hooked) {
|
||||||
#ifdef SIGHUP
|
#ifdef SIGHUP
|
||||||
signal(SIGHUP, hfunc);
|
signal(SIGHUP, hfunc);
|
||||||
#endif
|
#endif
|
||||||
#ifdef SIGQUIT
|
#ifdef SIGQUIT
|
||||||
signal(SIGQUIT, qfunc);
|
signal(SIGQUIT, qfunc);
|
||||||
#endif
|
#endif
|
||||||
signal(SIGINT, ifunc);
|
signal(SIGINT, ifunc);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#define RUBY_VERSION "1.6.6"
|
#define RUBY_VERSION "1.6.7"
|
||||||
#define RUBY_RELEASE_DATE "2002-02-24"
|
#define RUBY_RELEASE_DATE "2002-02-25"
|
||||||
#define RUBY_VERSION_CODE 166
|
#define RUBY_VERSION_CODE 167
|
||||||
#define RUBY_RELEASE_CODE 20020224
|
#define RUBY_RELEASE_CODE 20020225
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue