Subversion Repositories Kolibri OS

Rev

Rev 7914 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7914 Rev 8013
Line 51... Line 51...
51
:void RestartProcessByName(dword proc_name, byte multiple) {
51
:void RestartProcessByName(dword proc_name, byte multiple) {
52
	KillProcessByName(proc_name + strrchr(proc_name, '/'), multiple);
52
	KillProcessByName(proc_name + strrchr(proc_name, '/'), multiple);
53
	RunProgram(proc_name, "");	
53
	RunProgram(proc_name, "");	
54
}
54
}
Line -... Line 55...
-
 
55
 
-
 
56
:void RestartAllProcess() {
-
 
57
	int i;
-
 
58
	proc_info Process, Self;
-
 
59
	GetProcessInfo(#Self, -1);
-
 
60
	for (i=0; i
-
 
61
	{
-
 
62
		GetProcessInfo(#Process, i);
-
 
63
		if (Process.name) 
-
 
64
		&& (!streq(#Process.name, "OS"))
-
 
65
		&& (Process.ID != Self.ID)
-
 
66
			KillProcess(Process.ID);
-
 
67
	}
-
 
68
	RunProgram("/sys/launcher", NULL);
Line 55... Line 69...
55
 
69
}
56
 
70