On Sat, 7 Oct 2017 01:33:06 +0000
Giulio Moro <[email protected]> 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.

Henning

> Thanks,
> Giulio
> _______________________________________________
> Xenomai mailing list
> [email protected]
> https://xenomai.org/mailman/listinfo/xenomai


_______________________________________________
Xenomai mailing list
[email protected]
https://xenomai.org/mailman/listinfo/xenomai

Reply via email to