LunaSysMgr
|
#include "Common.h"
#include "HostBase.h"
#include "ApplicationDescription.h"
#include "ApplicationManager.h"
#include "BootupAnimation.h"
#include "CpuAffinity.h"
#include "HapticsController.h"
#include "IpcServer.h"
#include "Localization.h"
#include "WindowServer.h"
#include "WebAppMgrProxy.h"
#include "MemoryMonitor.h"
#include "Settings.h"
#include "SystemService.h"
#include "ApplicationInstaller.h"
#include "Preferences.h"
#include "DeviceInfo.h"
#include "Security.h"
#include "EASPolicyManager.h"
#include "Logging.h"
#include "BackupManager.h"
#include <ProcessKiller.h>
#include "MouseEventEater.h"
#include <sys/time.h>
#include <sys/resource.h>
#include <glib.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/prctl.h>
#include <unistd.h>
#include <stdlib.h>
#include <fcntl.h>
#include <time.h>
#include <pthread.h>
#include <signal.h>
#include <stdarg.h>
#include <syslog.h>
#include <ucontext.h>
#include <sys/file.h>
#include <QApplication>
#include <QtGui>
#include <QtGlobal>
Functions | |
void | malloc_stats (void) |
void | qtMsgHandler (QtMsgType type, const QMessageLogContext &, const QString &str) |
pid_t | spawnBootupAnimationProcess () |
gboolean | finishBootup (gpointer data) |
int | main (int argc, char **argv) |
Variables | |
volatile bool | stayInLoop = true |
int | crashLogFD = -1 |
pid_t | sysmgrPid |
pid_t | bootAnimPid |
int | bootAnimPipeFd =-1 |
int | sysmgrPipeFd =-1 |
int | WebAppMgrPipeFd =-1 |
int | IpcServerPipeFd =-1 |
char | msgOkToContinue = 0xAB |
int | appArgc = 0 |
char ** | appArgv = 0 |
Main entry point for Luna
gboolean finishBootup | ( | gpointer | data | ) |
void malloc_stats | ( | void | ) |
void qtMsgHandler | ( | QtMsgType | type, |
const QMessageLogContext & | , | ||
const QString & | str | ||
) |
pid_t spawnBootupAnimationProcess | ( | ) |
Forks the process, runs the bootup animation in the forked process, and sets up pipes for IPC
int appArgc = 0 |
char** appArgv = 0 |
pid_t bootAnimPid |
Process ID of the bootup animation process
Set by spawnBootupAnimationProcess().
int bootAnimPipeFd =-1 |
File descriptor of pipe to write to to talk to the boot animation process fork
int crashLogFD = -1 |
Crash log file descriptor
int IpcServerPipeFd =-1 |
File descriptor for WebAppManager process fork to read messages from the parent process from
char msgOkToContinue = 0xAB |
Message to be passed from parent process to WebAppManager process when the IpcServer is ready
volatile bool stayInLoop = true |
Used to allow us to bail from the handler when we're done debugging.
This is meant to be set only from within a gdb seesion.
pid_t sysmgrPid |
Process ID of the current process
int sysmgrPipeFd =-1 |
File descriptor for boot animation process fork to read messages from the parent process from
int WebAppMgrPipeFd =-1 |
File descriptor of pipe to write to to talk to the WebAppManager process fork