projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ab5ff1
)
Log ajaxterm output
author
Jamie Cameron
<jcameron@webmin.com>
Thu, 4 Feb 2010 02:10:26 +0000
(18:10 -0800)
committer
Jamie Cameron
<jcameron@webmin.com>
Thu, 4 Feb 2010 02:10:26 +0000
(18:10 -0800)
ajaxterm/index.cgi
patch
|
blob
|
history
diff --git
a/ajaxterm/index.cgi
b/ajaxterm/index.cgi
index
2ba1019
..
45a0ef9
100755
(executable)
--- a/
ajaxterm/index.cgi
+++ b/
ajaxterm/index.cgi
@@
-32,9
+32,10
@@
close(TEST);
$pid = fork();
if (!$pid) {
chdir("$module_root_directory/ajaxterm");
+ $logfile = $ENV{'WEBMIN_VAR'}.'/ajaxterm.log';
untie(*STDIN); open(STDIN, "</dev/null");
- untie(*STDOUT); open(STDOUT, ">
/dev/null
");
- untie(*STDERR); open(STDERR, ">
/dev/null
");
+ untie(*STDOUT); open(STDOUT, ">
$logfile
");
+ untie(*STDERR); open(STDERR, ">
$logfile
");
exec($python, "ajaxterm.py", "--port", $port, "--log");
exit(1);
}