Front page | perl.perl5.porters |
Postings from May 2001
Re: Relocatable perl
Thread Previous
|
Thread Next
From:
Jarkko Hietaniemi
Date:
May 3, 2001 11:27
Subject:
Re: Relocatable perl
Message ID:
20010503132647.M4815@chaos.wustl.edu
> How thoughtful of them... I would have thought that a program with all
> its files being fully relocatable would be a good thing. Of course
> it's true that a file may have many names, thanks to link(), but
> argv[0] being often just the executable name without the path is
> somewhat silly.
Another fringe case people sometimes mention when explaining the
non-existence of such an API is: "What if someone/the process itself
has removed its executable and the executable does no more exist?"
Well, tough. That's what the errno is for, right? (Not to mention
that in many systems trying to remove a busy executable will fail.)
*If* there were such an API I could see some value in providing the
whole path of exec()ed executables (and their argvs) backwards in time
starting from the init process (or its moral equivalent). But enough
pipe dreaming...
--
$jhi++; # http://www.iki.fi/jhi/
# There is this special biologist word we use for 'stable'.
# It is 'dead'. -- Jack Cohen
Thread Previous
|
Thread Next