comp.lang.ada
 help / color / mirror / Atom feed
* Single-Instance Executable, TSR-style programs, "lockfiles" and the DSA
@ 2021-09-08 21:23 Shark8
  2021-09-10  7:10 ` Emmanuel Briot
  0 siblings, 1 reply; 4+ messages in thread
From: Shark8 @ 2021-09-08 21:23 UTC (permalink / raw)


I'm currently engaged in writing a series of programs for some scientists to control a few cameras; one system is a sort of cobbled together web-program, distributed across several computers [PHP for interface + C++ for mesage-slinging and camera-control], while the other is a single computer basically running the camera's manufacturer's program. -- This is mostly about the latter, though as the former will need to be addressed [via DSA(?)] in the near future.

There is another system that I'm not touching (for now) which uses lockfiles; sometimes (crashes and erroneous shutdowns) will leave the lockfiles behind. I have a controlled type-wrapper that will close its file if it is still open, and that could easily be adapted to delete them on finalization in the case of a lockfile. -- (#1) What is the best way that the community has come up with regarding lockfiles or similar functionality?

In this particular case, the lockfile represents that the control software for a particular instrument is already running, which brought to mind the old DOS TSRs where you would boot up the program and could call it (or another program using its services) again to achieve some different/special effects, which then brought to mind the new single-instance executables. Now, obviously the DSA can be used in this manner so that one partition provides services and the client partition queries/quits as needed. -- (#2)  Is there a non-DSA, and hopefully portable, Ada way to achieve single-instance executables? [I haven't had any luck trying web-searches on this topic.]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-09-11  7:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-08 21:23 Single-Instance Executable, TSR-style programs, "lockfiles" and the DSA Shark8
2021-09-10  7:10 ` Emmanuel Briot
2021-09-10 16:26   ` Shark8
2021-09-11  7:42     ` Emmanuel Briot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox