[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/rtmp r10008: always start the cgi applicat
From: |
rob |
Subject: |
[Gnash-commit] /srv/bzr/gnash/rtmp r10008: always start the cgi application in verbose mode. |
Date: |
Sat, 21 Feb 2009 16:07:18 -0700 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 10008
committer: address@hidden
branch nick: rtmp
timestamp: Sat 2009-02-21 16:07:18 -0700
message:
always start the cgi application in verbose mode.
modified:
cygnal/proc.cpp
=== modified file 'cygnal/proc.cpp'
--- a/cygnal/proc.cpp 2009-02-21 18:53:46 +0000
+++ b/cygnal/proc.cpp 2009-02-21 23:07:18 +0000
@@ -99,25 +99,30 @@
}
// setup a command line. By default, argv[0] is the name of the process
- cmd_line[0] = new char(filespec.size());
- strcpy(cmd_line[0], filespec.c_str());
+ cmd_line[0] = new char(filespec.size()+1);
+ strncpy(cmd_line[0], filespec.c_str(), filespec.size());
+ // If the parent has verbosity on, chances are the child should too.
+// if (dbglogfile.getVerbosity() > 0) {
+ cmd_line[1] = new char(4);
+ strcpy(cmd_line[1], "-vv");
+ cmd_line[2] = 0;
+// }
+
// When running multiple cgis, we prefer to specify the port it's using.
if (port > 0) {
- cmd_line[1] = new char(10);
- sprintf(cmd_line[1], "-p %d", port);
+ cmd_line[2] = new char(3);
+ strcpy(cmd_line[2], "-p");
+ cmd_line[3] = new char(10);
+ sprintf(cmd_line[3], "%d", port);
+ cmd_line[4] = 0;
}
- // If the parent has verbosity on, chances are the child should too.
- if (dbglogfile.getVerbosity() > 0) {
- cmd_line[2] = "-vv";
- }
-
// fork ourselves silly
childpid = fork();
- boost::mutex::scoped_lock lock(_mutex);
+// boost::mutex::scoped_lock lock(_mutex);
// childpid is a positive integer, if we are the parent, and fork() worked
if (childpid > 0) {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/rtmp r10008: always start the cgi application in verbose mode.,
rob <=