Always make a pid file, not only when `-daemon` specified.
This is useful for troubleshooting, for attaching debuggers and loggers
and such.
- Write the pid file only after the datadir lock was acquired
- Don't create or remove a pid file on WIN32, and also don't show the option
strUsage+=" -maxorphanblocks=<n> "+strprintf(_("Keep at most <n> unconnectable blocks in memory (default: %u)"),DEFAULT_MAX_ORPHAN_BLOCKS)+"\n";
strUsage+=" -maxorphantx=<n> "+strprintf(_("Keep at most <n> unconnectable transactions in memory (default: %u)"),DEFAULT_MAX_ORPHAN_TRANSACTIONS)+"\n";
strUsage+=" -par=<n> "+strprintf(_("Set the number of script verification threads (%u to %d, 0 = auto, <0 = leave that many cores free, default: %d)"),-(int)boost::thread::hardware_concurrency(),MAX_SCRIPTCHECK_THREADS,DEFAULT_SCRIPTCHECK_THREADS)+"\n";
strUsage+=" -reindex "+_("Rebuild block chain index from current blk000??.dat files")+""+_("on startup")+"\n";
#if !defined(WIN32)
strUsage+=" -sysperms "+_("Create new files with system default permissions, instead of umask 077 (only effective with disabled wallet functionality)")+"\n";