SPAWN_CRITICAL

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?

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.