No such tree SHA1 was found

This is a simple C program that waits for a remote socket to become available.
It’s useful to avoid guessing when a service comes back up, etc…

Example:

waitforsocket somehost 22 ; ssh somehost