in reply to Registering various app states at run-time
If you are writting some network server in a non blocking fashion (so, using select), you can use another TCP port or a Unix socket to serve the status (or if it is a web server, mapping it to a specific url).
If performance is what bothers you, you can use some shared memory module or use a ram file system (for instance, /tmp on Solaris).
You can also write status to disk only when a signal is sent to the process, but be carefull on how you handle signals from perl because it is easy to crash the app if you try to do something complex there that allocates memory.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Registering various app states at run-time
by arkturuz (Curate) on Feb 13, 2006 at 13:04 UTC | |
by salva (Canon) on Feb 13, 2006 at 13:28 UTC | |
by arkturuz (Curate) on Feb 13, 2006 at 13:50 UTC |