mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 02:53:10 +01:00
documentation improvements, gcc 4.3 warning fix
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
//
|
//
|
||||||
// HelpFormatter.h
|
// HelpFormatter.h
|
||||||
//
|
//
|
||||||
// $Id: //poco/svn/Util/include/Poco/Util/HelpFormatter.h#1 $
|
// $Id: //poco/Main/Util/include/Poco/Util/HelpFormatter.h#3 $
|
||||||
//
|
//
|
||||||
// Library: Util
|
// Library: Util
|
||||||
// Package: Options
|
// Package: Options
|
||||||
@@ -116,6 +116,9 @@ public:
|
|||||||
/// Enables Unix-style options. Both short and long option names
|
/// Enables Unix-style options. Both short and long option names
|
||||||
/// are printed if Unix-style is set. Otherwise, only long option
|
/// are printed if Unix-style is set. Otherwise, only long option
|
||||||
/// names are printed.
|
/// names are printed.
|
||||||
|
///
|
||||||
|
/// After calling setUnixStyle(), setAutoIndent() should be called
|
||||||
|
/// as well to ensure proper help text formatting.
|
||||||
|
|
||||||
bool isUnixStyle() const;
|
bool isUnixStyle() const;
|
||||||
/// Returns if Unix-style options are set.
|
/// Returns if Unix-style options are set.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
//
|
//
|
||||||
// ServerApplication.cpp
|
// ServerApplication.cpp
|
||||||
//
|
//
|
||||||
// $Id: //poco/Main/Util/src/ServerApplication.cpp#27 $
|
// $Id: //poco/Main/Util/src/ServerApplication.cpp#28 $
|
||||||
//
|
//
|
||||||
// Library: Util
|
// Library: Util
|
||||||
// Package: Application
|
// Package: Application
|
||||||
@@ -472,9 +472,12 @@ void ServerApplication::beDaemon()
|
|||||||
// instead of just closing them. This avoids
|
// instead of just closing them. This avoids
|
||||||
// issues with third party/legacy code writing
|
// issues with third party/legacy code writing
|
||||||
// stuff to stdout/stderr.
|
// stuff to stdout/stderr.
|
||||||
freopen("/dev/null", "r+", stdin);
|
FILE* fin = freopen("/dev/null", "r+", stdin);
|
||||||
freopen("/dev/null", "r+", stdout);
|
if (!fin) throw Poco::OpenFileException("Cannot attach stdin to /dev/null");
|
||||||
freopen("/dev/null", "r+", stderr);
|
FILE* fout = freopen("/dev/null", "r+", stdout);
|
||||||
|
if (!fout) throw Poco::OpenFileException("Cannot attach stdout to /dev/null");
|
||||||
|
FILE* ferr = freopen("/dev/null", "r+", stderr);
|
||||||
|
if (!ferr) throw Poco::OpenFileException("Cannot attach stderr to /dev/null");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user