Find out if the programme was started with SPAWN_PADDR64_SAFE

I have the following problem:
In a distributed system, a watchdog is running that monitors various programmes and restarts them if they stop running.
The programs are not initially started by the watchdog, but from a script.
However, the watchdog should start the programmes under the same conditions as before.
Sometimes calls like “on -P -p25f ./program attr1 attr2” are used.
Reading this information from the running processes and making it available to the watchdog is no problem, except for the “-P” option of “on”.
I have been able to find out that this sets the SPAWN_PADDR64_SAFE flag.
Unfortunately, I have not found a way to read this information from the running process.
Is there such a way?
Thanks in advance.