Subject: fd to executable
To: None <tech-misc@netbsd.org>
From: Thorbjorn Jemander <thoan@ifm.liu.se>
List: tech-misc
Date: 01/03/2001 10:33:16
Hi,

is there a safe way (with no race-conditions) to get
the file descriptor to the executable from inside that
running application? Once the app has been launched,
is there something preventing the executble on disk
from being moved or even deleted?

The reason for asking is to find out if there is a way
to store data (read-only) in the executable itself, much
like the resources on MacOS and BeOS. (Not to be confused
with the X11 resources, separate files acting as 'preferences'
mostly). While storing data seem to be possible, finding the
executable on disk seems to be more difficult.

Anyone have any ideas?

/Thorbjörn Jemander