summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTheTroll <trolldev@gmail.com>2010-04-17 15:05:33 +0200
committerTheTroll <trolldev@gmail.com>2010-04-17 15:05:33 +0200
commite550e91067ebd03c548bd6205cdbb52ab94e961e (patch)
treeee80ff451fc94d2c2f218e41b048a62d54e93cdd /bin
parent45b3d3f1c0d38e5ebe8e871280f8dc6e835aaaeb (diff)
downloadistreamdev-e550e91067ebd03c548bd6205cdbb52ab94e961e.tar.gz
istreamdev-e550e91067ebd03c548bd6205cdbb52ab94e961e.tar.bz2
Give time to pids to be created (2 secs)
Diffstat (limited to 'bin')
-rw-r--r--bin/session.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/session.php b/bin/session.php
index 6a104dc..9930a3d 100644
--- a/bin/session.php
+++ b/bin/session.php
@@ -93,12 +93,15 @@ function sessioncreate($type, $url, $mode)
default:
$cmd = "";
}
-
+
addlog("Sending encoding command: " .$cmd);
$cmd = str_replace('%', '%%', $cmd);
exec ($cmd);
+ // Give the time to the scrip to create pids
+ exec ("sleep 2");
+
// Write streaminfo
writeinfostream($session, $type, $mode, $url, $channame);