summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorTheTroll <trolldev@gmail.com>2010-02-27 03:50:42 +0100
committerTheTroll <trolldev@gmail.com>2010-02-27 03:50:42 +0100
commit49c824834d10639ec90d8c53d76e4c5e2d84c860 (patch)
tree81ed435a3d22641db90cace81b51893370ceea36 /includes
parent05a58ef6e05078fde0e90f74bf2a609dbc543fd5 (diff)
downloadistreamdev-49c824834d10639ec90d8c53d76e4c5e2d84c860.tar.gz
istreamdev-49c824834d10639ec90d8c53d76e4c5e2d84c860.tar.bz2
Now use a modified version of segmenter that write its PID on disk while running
Diffstat (limited to 'includes')
-rwxr-xr-xincludes/inc_session.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/includes/inc_session.php b/includes/inc_session.php
index 95d01cb..6630107 100755
--- a/includes/inc_session.php
+++ b/includes/inc_session.php
@@ -55,13 +55,12 @@ function sessiondelete($session)
$subcmd = "";
// Get segmenter PID if any
- if (file_exists($ram ."streamsegmenterpid"))
+ if (file_exists($ram ."segmenter.pid"))
{
- $pidfile = fopen($ram ."streamsegmenterpid", 'r');
+ $pidfile = fopen($ram ."segmenter.pid", 'r');
if ($pidfile)
{
$pid = fgets($pidfile);
- $pid = substr($pid, 0, -1);
$subcmd = "kill " .$pid ." ; ";
fclose($pidfile);
}