[GHC] #9143: feature request: way to set actual program argv
GHC
ghc-devs at haskell.org
Wed Aug 12 14:42:20 UTC 2015
#9143: feature request: way to set actual program argv
-------------------------------------+-------------------------------------
Reporter: joeyhess | Owner:
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Runtime System | Version: 7.8.2
Resolution: | Keywords:
Operating System: Linux | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Revisions:
-------------------------------------+-------------------------------------
Comment (by pgj):
As far as I know, on FreeBSD, the recommended method for changing the
value of `argv[0]` is calling the
[https://www.freebsd.org/cgi/man.cgi?query=setproctitle&sektion=3
setproctitle(3)] function. I am not sure if rest of `argv` could be
changed safely.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9143#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list