Skip to content

Instantly share code, notes, and snippets.

@hamiltont
Created October 24, 2014 21:35
Show Gist options
  • Save hamiltont/fe81a312ed8150fa8a3b to your computer and use it in GitHub Desktop.
Save hamiltont/fe81a312ed8150fa8a3b to your computer and use it in GitHub Desktop.
I was trying to do that same recursive PPID trick using the process id that resulted from __run_test, but the main issue was that a lot of tests start using "sudo nginx ...", which means that nginx immediately calls set session ID and I couldn't find the nginx master process. Your approach of finding the process bound to that port will help you find the nginx master process, and then from there you should be able to use the recursive PPID trick just fine (no one calls set session id twice...)
5:34 PM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment