in reply to Best practices - absolute paths?

If your threads don't do any chdir()'ing, then there's no problem with continuing to use relative paths.

My approach would be to start the application in a certain location and then use relative paths from there without doing any chdir()'ing. The startup location would either be configurable or be specified on the command line.


Remember: There's always one more bug.