summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-07-23 00:11:34 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-07-23 00:11:34 +0000
commit97a848151bbebd179b2373f04a1f5b288fe57963 (patch)
tree90e61147ff5b891f79184aae582e274f47ee02d2 /eval.c
parent9b97c2435c1d6fdbcdfab104cb1ac3359d40dff2 (diff)
downloadruby-97a848151bbebd179b2373f04a1f5b288fe57963.tar.gz
ruby-97a848151bbebd179b2373f04a1f5b288fe57963.tar.xz
ruby-97a848151bbebd179b2373f04a1f5b288fe57963.zip
* lib/cgi/session.rb (CGI::Session::FileStore#update): sets the
permission of the session data file to 0600. * lib/cgi/session/pstore.rb (CGI::Session::Pstore#initialize): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index 21678876d..d62f0f55d 100644
--- a/eval.c
+++ b/eval.c
@@ -10913,10 +10913,13 @@ rb_thread_sleep(sec)
void
rb_thread_sleep_forever()
{
+ int thr_critical = rb_thread_critical;
if (curr_thread == curr_thread->next ||
curr_thread->status == THREAD_TO_KILL) {
+ rb_thread_critical = Qtrue;
TRAP_BEG;
pause();
+ rb_thread_critical = thr_critical;
TRAP_END;
return;
}