English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2008-10-10 (15:11)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] Writing to argv[0]
On Thu, Oct 09, 2008 at 05:31:11PM +0200, Basile STARYNKEVITCH wrote:
> 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.


PostgreSQL offers this code to change the proc title on many different


Richard Jones
Red Hat