PidExecutor - an executor that waits for the specified file to exist

This is an executor that starts a process, then waits for a specified file to come into existance. Usefull for integration tests, etc.
Can you find a corner case when file checked in this moment isn't created by subprocess from current executor?
Can we make sure it's created by our subprocess?