Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

[ruby-dev:28282] Re: [PATCH] solaris 10 isinf and ruby_setenv fixes: msg#00083

lang.ruby.devel

Subject: [ruby-dev:28282] Re: [PATCH] solaris 10 isinf and ruby_setenv fixes

まつもと ゆきひろです

マシン不調でなかなか登場できません。

On 1/25/06, H. Yamamoto <ocean@xxxxxxxxxxxxxxx> wrote:

> > p ENV
> > $0 = $0 # test/unit/ui/console/testrunner.rb (HEAD) modifies $0
> > p ENV
> >
> >パッチを当てると、HEAD も ruby_1_8 も二番目の p ENV が { , , , , } になります。
> >
> >ruby_1_8 でエラーにならなかったのは、test/unit/ui/console/testrunner.rb で
> >$0 を変更していなかったからでした。
> >
> >そして $0= の実装である set_arg0 には
> >
> > ruby_setenv("", NULL); /* duplicate environ vars */
> >
> >なんて行があるので、どうも setenv の独自実装と $0= は依存している感じですね。
>
> $0= で origargv を変更しているのが environ にも影響している感じなのですが、
> この処理って本当に必要なんでしょうか?environ を変更するのと同じぐらい
> 危ない処理に思えますが・・・

わたなべてつやさんの情報によりHP/UXではsetproctitleを使うように作ったつもりなんですが。ruby_setenv("",NULL)が動くってことは、setproctitleの検出に失敗しているということなんでしょうか。




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
drivers.mtd/200...    security.firewa...    java.openamf.cv...    rpm.yum/2003-08...    telephony.sipp....    file-systems.oc...    qnx.openqnx.dev...    voip.linphone.u...    hardware.sony/2...    network.simulat...    boot-loaders.gr...    ietf.usenet.for...    culture.languag...    emacs.latex.pre...    music.jamiroqua...    xfree86.neomagi...    user-groups.lin...    ltp/2006-08/msg...    kde.kst/2005-08...    programming.too...    os.freebsd.deve...    window-managers...    audio.cd-record...    gnu.fiasco.bugs...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation