View topic - SPAWN_CRITICAL

SPAWN_CRITICAL

For discussion of realtime and/or embedded programming.

SPAWN_CRITICAL

Postby lucaskar » Thu Nov 19, 2020 2:08 pm

Hello all,

I'd like to verify that an application was spawned with the SPAWN_CRITICAL flag.
https://www.qnx.com/developers/docs/7.0.0/#com.qnx.doc.neutrino.lib_ref/topic/s/spawn.html

If posix_spawn is used
https://www.qnx.com/developers/docs/7.0.0/#com.qnx.doc.neutrino.lib_ref/topic/p/posix_spawn.html
rather than spawn, it is possible to determine what flags were used with the api posix_spawnattr_getxflags().
https://www.qnx.com/developers/docs/7.0.0/#com.qnx.doc.neutrino.lib_ref/topic/p/posix_spawnattr_getxflags.html

However, I'd like to verify the service was spawned with SPAWN_CRITICAL flag via another application. Any way of doing this other than killing the process and verifying the system crashes?
lucaskar
New Member
 
Posts: 1
Joined: Wed Aug 05, 2020 1:43 pm

Re: SPAWN_CRITICAL

Postby maschoen » Fri Nov 27, 2020 6:56 am

As I've not used QNX 7.04 I've not run into this flag before. You might want to check out pidin options to see if it is visible. If it is, you have two options. One would be to do a hack where you run pidin and scrape the information you need from its output. The other would be to dig in and find the API that pidin is using to get this information.
maschoen
QNX Master
 
Posts: 2728
Joined: Wed Jun 25, 2003 5:18 pm


Return to Realtime and Embedded

Who is online

Users browsing this forum: No registered users and 2 guests