[cpp-sp COMMIT] /branches/REL_2/shibd/shibd_win32.cpp
noreply at shibboleth.net
noreply at shibboleth.net
Thu Mar 1 02:52:18 GMT 2012
Author: scantor
Date: Thu Mar 1 02:52:18 2012
New Revision: 3586
URL: http://svn.shibboleth.net/view/cpp-sp?rev=3586&view=rev
Log:
https://issues.shibboleth.net/jira/browse/SSPCPP-407
Modified:
branches/REL_2/shibd/shibd_win32.cpp
Modified: branches/REL_2/shibd/shibd_win32.cpp
URL: http://svn.shibboleth.net/view/cpp-sp/branches/REL_2/shibd/shibd_win32.cpp?rev=3586&r1=3585&r2=3586&view=diff
==============================================================================
--- branches/REL_2/shibd/shibd_win32.cpp (original)
+++ branches/REL_2/shibd/shibd_win32.cpp Thu Mar 1 02:52:18 2012
@@ -80,7 +80,7 @@
}
-int real_main(int); // The revised two-phase main() in shar.cpp
+int real_main(int); // The revised two-phase main() in shibd.cpp
int main(int argc, char *argv[])
{
@@ -96,6 +96,16 @@
{
if (argc > ++i)
lpszRemove = argv[i++];
+ }
+ else if (_stricmp("stdout", argv[i]+1) == 0)
+ {
+ if (argc > ++i)
+ freopen(argv[i++], "a+", stdout);
+ }
+ else if (_stricmp("stderr", argv[i]+1) == 0)
+ {
+ if (argc > ++i)
+ freopen(argv[i++], "a+", stderr);
}
else if (_stricmp( "console", argv[i]+1) == 0)
{
@@ -161,6 +171,8 @@
printf("%s -remove <name> to remove the named service\n", argv[0]);
printf("%s -console to run as a console app for debugging\n", argv[0]);
printf("%s -check to run as a console app and check configuration\n", argv[0]);
+ printf("\t-stdout <path> to redirect stdout stream\n");
+ printf("\t-stderr <path> to redirect stderr stream\n");
printf("\t-prefix <dir> to specify the installation directory\n");
printf("\t-config <file> to specify the config file to use\n");
printf("\t-catalogs <catalog1:catalog2> to specify schema catalogs\n");
More information about the commits
mailing list