pull of unix socket to interact with apache2
[brisk.git] / web / spush / brisk-spush.php
index f814d00..00d3e64 100755 (executable)
@@ -40,6 +40,25 @@ require_once($G_base."briskin5/Obj/briskin5.phh");
 require_once($G_base."briskin5/index.php");
 require_once($G_base."briskin5/index_wr.php");
 
+if (FALSE) {
+function my_e($number, $msg, $file, $line, $vars) {
+    print_r(debug_backtrace());
+    die();
+}
+
+function my_for_fatal()
+{
+    // $error = error_get_last();
+    // if ( $error["type"] == E_ERROR ) {
+        print_r(debug_backtrace());
+        die();
+        // }
+    //   log_error( $error["type"], $error["message"], $error["file"], $error["line"] );
+}
+
+register_shutdown_function( "my_for_fatal" );
+set_error_handler('my_e');
+}
 
 function main($argv)
 {
@@ -53,7 +72,7 @@ function main($argv)
             break;
         }
 
-        if (($s_a_p = Sac_a_push::create($brisk, USOCK_PATH, 0, 0, $G_provider_proxy, $argv)) === FALSE) {
+        if (($s_a_p = Sac_a_push::create($brisk, USOCK_PATH_PFX, 0, 0, $G_provider_proxy, $argv)) === FALSE) {
             $ret = 2;
             break;
         }