Page 1 of 1


PostPosted: Thu Nov 19, 2020 2:08 pm
by lucaskar
Hello all,

I'd like to verify that an application was spawned with the SPAWN_CRITICAL flag.

If posix_spawn is used
rather than spawn, it is possible to determine what flags were used with the api posix_spawnattr_getxflags().

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?


PostPosted: Fri Nov 27, 2020 6:56 am
by maschoen
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.