While working on #52 I ran into https://github.com/xrootd/xrootd/pull/2208 which caused the xrootd server to be left open after the first test run. This resulted in some very weird errors.
In another project I've used this function to give a clearer error message if the port is already taken. Feel free to close this PR if you'd prefer not to add this.
While working on #52 I ran into https://github.com/xrootd/xrootd/pull/2208 which caused the xrootd server to be left open after the first test run. This resulted in some very weird errors.
In another project I've used this function to give a clearer error message if the port is already taken. Feel free to close this PR if you'd prefer not to add this.