On the other hand, how about run it by system() API in unsandboxed application?
I don’t see a system section in the adef documentation, can you point to it? If you mean system like POSIX system call, then I’d rather not have a useless parent process.
The Legato is still killing my processes when run via autostart:true in the .adef, app start or app runproc but it runs fine from the command line via the /legato/systems/current/appsWriteable/ path. Specifically I get the following legato error:
Oct 7 14:34:01 wp-under-test user.emerg Legato: *EMR* | _UNKNOWN_[15619]/framework T=unknown | eventLoop.c fa_event_CreatePerThreadInfo() 153 | epoll_create1(0) failed with errno 24.
Specifically app is killing my program when i call le_thread_InitLegatoThreadData from the none-main thread (which documentation tells me to do).
What do i need to do to allow autostart and/or app to not kill my program for calling le_thread_InitLegatoThreadData ?
the epoll_create1 issue triggered by le_thread_InitLegatoThreadData was due to a ulimit parameter in teh adef file template i was using.
the original issue, pointing to a bundled static files, I needed to point to the files via the /legato/systems/current/appsWriteable/ path. I imagine this is because the app is not sandboxed.