I am using Yaws 1.77 in embedded mode in an application. Starting Yaws in embedded mode starts Yaws as a separate application. The supervisor (yaws_sup) restart strategy changed since Yaws 1.76 (?) to not restart, for understandable reasons given in the source code.
Here's the thing: if for example the gserv process dies, then yaws_server crashes and the entire yaws application dies. I can't figure out how to detect that it died so that I can restart it from within my supervisor, because yaws:start_embedded() returns only the atom ok (no pid to link to). What do I link to in order to detect the crash, or what other mechanism should I use? I just can't figure it out.
For every expert there is an equal and opposite expert - Arthur C. Clarke