Version française
Home     About     Download     Resources     Contact us    
Browse thread
Writing to argv[0]
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Basile STARYNKEVITCH <basile@s...>
Subject: Re: [Caml-list] Writing to argv[0]
Dave Benjamin wrote:
> Hi,
> 
> Is there any way for an OCaml program to change its name in the process 
> table? Assigning to Sys.argv.(0) has no effect.


Write a C wrapper for that. And this trick seems Linux specific (it has 
no sense in Posix) -maybe working on few other OSes.

Regards.

-- 
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***