Browse Source

Restructured the way, processes are inserted and removed

tags/3.5
Michael Vogel 2 years ago
parent
commit
1caa87dce6

+ 0
- 2
boot.php View File

@@ -1736,8 +1736,6 @@ function login($register = false, $hiddens=false) {
1736 1736
  */
1737 1737
 function killme() {
1738 1738
 
1739
-	get_app()->end_process();
1740
-
1741 1739
 	if (!get_app()->is_backend())
1742 1740
 		session_write_close();
1743 1741
 

+ 0
- 2
include/auth_ejabberd.php View File

@@ -58,8 +58,6 @@ if(is_null($db)) {
58 58
 	unset($db_host, $db_user, $db_pass, $db_data);
59 59
 };
60 60
 
61
-$a->start_process();
62
-
63 61
 // the logfile to which to write, should be writeable by the user which is running the server
64 62
 $sLogFile = get_config('jabber','logfile');
65 63
 

+ 0
- 2
include/cli_startup.php View File

@@ -19,8 +19,6 @@ function cli_startup() {
19 19
     	unset($db_host, $db_user, $db_pass, $db_data);
20 20
   	};
21 21
 
22
-	$a->start_process();
23
-
24 22
 	require_once('include/session.php');
25 23
 
26 24
 	load_config('config');

+ 0
- 2
include/cron.php View File

@@ -27,8 +27,6 @@ function cron_run(&$argv, &$argc){
27 27
 		unset($db_host, $db_user, $db_pass, $db_data);
28 28
 	};
29 29
 
30
-	$a->start_process();
31
-
32 30
 	require_once('include/session.php');
33 31
 	require_once('include/datetime.php');
34 32
 	require_once('include/items.php');

+ 0
- 2
include/cronhooks.php View File

@@ -17,8 +17,6 @@ function cronhooks_run(&$argv, &$argc){
17 17
 		unset($db_host, $db_user, $db_pass, $db_data);
18 18
 	};
19 19
 
20
-	$a->start_process();
21
-
22 20
 	require_once('include/session.php');
23 21
 	require_once('include/datetime.php');
24 22
 

+ 0
- 2
include/cronjobs.php View File

@@ -27,8 +27,6 @@ function cronjobs_run(&$argv, &$argc){
27 27
 		unset($db_host, $db_user, $db_pass, $db_data);
28 28
 	};
29 29
 
30
-	$a->start_process();
31
-
32 30
 	require_once('include/session.php');
33 31
 	require_once('include/datetime.php');
34 32
 	require_once('include/ostatus.php');

+ 0
- 2
include/dbstructure.php View File

@@ -1467,8 +1467,6 @@ function dbstructure_run(&$argv, &$argc) {
1467 1467
 			unset($db_host, $db_user, $db_pass, $db_data);
1468 1468
 	}
1469 1469
 
1470
-	$a->start_process();
1471
-
1472 1470
 	if ($argc==2) {
1473 1471
 		switch ($argv[1]) {
1474 1472
 			case "update":

+ 0
- 2
include/dbupdate.php View File

@@ -16,8 +16,6 @@ function dbupdate_run(&$argv, &$argc) {
16 16
 		        unset($db_host, $db_user, $db_pass, $db_data);
17 17
 	}
18 18
 
19
-	$a->start_process();
20
-
21 19
 	load_config('config');
22 20
 	load_config('system');
23 21
 

+ 0
- 2
include/delivery.php View File

@@ -21,8 +21,6 @@ function delivery_run(&$argv, &$argc){
21 21
 		unset($db_host, $db_user, $db_pass, $db_data);
22 22
 	}
23 23
 
24
-	$a->start_process();
25
-
26 24
 	require_once("include/session.php");
27 25
 	require_once("include/datetime.php");
28 26
 	require_once('include/items.php');

+ 0
- 2
include/directory.php View File

@@ -15,8 +15,6 @@ function directory_run(&$argv, &$argc){
15 15
 				unset($db_host, $db_user, $db_pass, $db_data);
16 16
 	};
17 17
 
18
-	$a->start_process();
19
-
20 18
 	load_config('config');
21 19
 	load_config('system');
22 20
 

+ 0
- 2
include/discover_poco.php View File

@@ -18,8 +18,6 @@ function discover_poco_run(&$argv, &$argc){
18 18
 	unset($db_host, $db_user, $db_pass, $db_data);
19 19
 	};
20 20
 
21
-	$a->start_process();
22
-
23 21
 	require_once('include/session.php');
24 22
 	require_once('include/datetime.php');
25 23
 

+ 0
- 2
include/expire.php View File

@@ -16,8 +16,6 @@ function expire_run(&$argv, &$argc){
16 16
     	unset($db_host, $db_user, $db_pass, $db_data);
17 17
   	};
18 18
 
19
-	$a->start_process();
20
-
21 19
 	require_once('include/session.php');
22 20
 	require_once('include/datetime.php');
23 21
 	require_once('include/items.php');

+ 0
- 2
include/gprobe.php View File

@@ -18,8 +18,6 @@ function gprobe_run(&$argv, &$argc){
18 18
     	unset($db_host, $db_user, $db_pass, $db_data);
19 19
   	};
20 20
 
21
-	$a->start_process();
22
-
23 21
 	require_once('include/session.php');
24 22
 	require_once('include/datetime.php');
25 23
 

+ 0
- 2
include/notifier.php View File

@@ -54,8 +54,6 @@ function notifier_run(&$argv, &$argc){
54 54
 			unset($db_host, $db_user, $db_pass, $db_data);
55 55
 	}
56 56
 
57
-	$a->start_process();
58
-
59 57
 	require_once("include/session.php");
60 58
 	require_once("include/datetime.php");
61 59
 	require_once('include/items.php');

+ 0
- 2
include/onepoll.php View File

@@ -24,8 +24,6 @@ function onepoll_run(&$argv, &$argc){
24 24
 		unset($db_host, $db_user, $db_pass, $db_data);
25 25
 	};
26 26
 
27
-	$a->start_process();
28
-
29 27
 	require_once('include/session.php');
30 28
 	require_once('include/datetime.php');
31 29
 	require_once('include/items.php');

+ 5
- 2
include/poller.php View File

@@ -333,7 +333,10 @@ function poller_active_workers() {
333 333
 }
334 334
 
335 335
 if (array_search(__file__,get_included_files())===0){
336
-  poller_run($_SERVER["argv"],$_SERVER["argc"]);
337
-  killme();
336
+	poller_run($_SERVER["argv"],$_SERVER["argc"]);
337
+
338
+	get_app()->end_process();
339
+
340
+	killme();
338 341
 }
339 342
 ?>

+ 0
- 2
include/pubsubpublish.php View File

@@ -70,8 +70,6 @@ function pubsubpublish_run(&$argv, &$argc){
70 70
 		unset($db_host, $db_user, $db_pass, $db_data);
71 71
 	};
72 72
 
73
-	$a->start_process();
74
-
75 73
 	require_once('include/items.php');
76 74
 
77 75
 	load_config('config');

+ 0
- 2
include/queue.php View File

@@ -17,8 +17,6 @@ function queue_run(&$argv, &$argc){
17 17
 		unset($db_host, $db_user, $db_pass, $db_data);
18 18
 	};
19 19
 
20
-	$a->start_process();
21
-
22 20
 	require_once("include/session.php");
23 21
 	require_once("include/datetime.php");
24 22
 	require_once('include/items.php');

+ 0
- 2
include/shadowupdate.php View File

@@ -14,8 +14,6 @@ if(is_null($db)) {
14 14
 	unset($db_host, $db_user, $db_pass, $db_data);
15 15
 }
16 16
 
17
-$a->start_process();
18
-
19 17
 load_config('config');
20 18
 load_config('system');
21 19
 

+ 0
- 2
include/tagupdate.php View File

@@ -14,8 +14,6 @@ if(is_null($db)) {
14 14
 	unset($db_host, $db_user, $db_pass, $db_data);
15 15
 }
16 16
 
17
-$a->start_process();
18
-
19 17
 load_config('config');
20 18
 load_config('system');
21 19
 

+ 0
- 2
include/threadupdate.php View File

@@ -14,8 +14,6 @@ if(is_null($db)) {
14 14
 	unset($db_host, $db_user, $db_pass, $db_data);
15 15
 }
16 16
 
17
-$a->start_process();
18
-
19 17
 load_config('config');
20 18
 load_config('system');
21 19
 

+ 0
- 2
include/update_gcontact.php View File

@@ -16,8 +16,6 @@ function update_gcontact_run(&$argv, &$argc){
16 16
 		unset($db_host, $db_user, $db_pass, $db_data);
17 17
 	};
18 18
 
19
-	$a->start_process();
20
-
21 19
 	require_once('include/Scrape.php');
22 20
 	require_once("include/socgraph.php");
23 21
 

Loading…
Cancel
Save