mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
setproctitle.c: _NSGetEnviron
* missing/setproctitle.c (environ): use (*_NSGetEnviron()) instead of environ on Darwin for namespace cleanness, same as [ruby-core:00537]. [ruby-core:45615] [Bug #6576] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
50aab6d401
commit
2741a598ff
2 changed files with 12 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
Wed Jun 20 16:36:14 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* missing/setproctitle.c (environ): use (*_NSGetEnviron()) instead of
|
||||
environ on Darwin for namespace cleanness, same as [ruby-core:00537].
|
||||
[ruby-core:45615] [Bug #6576]
|
||||
|
||||
Wed Jun 20 11:33:04 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* process.c (rb_execarg_addopt): always make Fixnum, and ignore higher
|
||||
|
|
|
@ -48,6 +48,12 @@
|
|||
#endif
|
||||
#include <string.h>
|
||||
|
||||
#if defined(__APPLE__)
|
||||
#include <crt_externs.h>
|
||||
#undef environ
|
||||
#define environ (*_NSGetEnviron())
|
||||
#endif
|
||||
|
||||
#define SPT_NONE 0 /* don't use it at all */
|
||||
#define SPT_PSTAT 1 /* use pstat(PSTAT_SETCMD, ...) */
|
||||
#define SPT_REUSEARGV 2 /* cover argv with title information */
|
||||
|
|
Loading…
Reference in a new issue