[Xenomai] --session= is not a recognized option when using Posix skin
henning.schild at siemens.com
Mon Oct 16 10:23:28 CEST 2017
On Sat, 7 Oct 2017 01:33:06 +0000
Giulio Moro <g.moro at qmul.ac.uk> wrote:
> > The POSIX API does not depend on copperplate, so
> > you don't have support for multi-process sessions when linking
> > against libcobalt exclusively.
> Ok. All we need this for is to prevent multiple instances of our
> program to be started at the same time. What would you suggest as the
> best way to check for the existence of a given real-time task using
> the POSIX API? We could just grep /proc/xenomai/sched/stat, or is
> there a better solution?
In the init-phase your process is probably not real-time yet. So you
can implement a PID-file-based singleton or something alike. Or offload
that task to systemd or whatever you use as init-system.
> Xenomai mailing list
> Xenomai at xenomai.org
More information about the Xenomai