Apple's screen saver framework is, as I'm sure you are aware, a piece of shit. It regularly just goes catatonic and stops running savers, and it has been this bad for over a decade. Since both I and my users would prefer for our screen savers to keep running, I have tried a number of things to work around this longstanding Apple bug and have not found anything that works yet. I have tried:
https://jwz.org/b/ylDa
@jwz what happens if you exit() when detecting #1? iirc a .saver is like a dylib that gets loaded by the screensaver host process that you're trying to kill, not an entirely separate process.
you probably thought of that and i'm missing something, though.. or apple changed how it works?