39 using namespace RemotePluginProcessNS;
47 case QtWarningMsg: priority = LOG_WARNING;
break;
48 case QtCriticalMsg: priority = LOG_CRIT;
break;
49 case QtFatalMsg: priority = LOG_EMERG;
break;
52 default: priority = LOG_INFO;
break;
55 syslog(priority,
"%s", msg);
58 int main(
int argc,
char *argv[])
65 #ifndef NO_SIGNON_USER
67 BLAME() << argv[0] <<
" cannot be started with root priviledges!!!";
72 QCoreApplication app(argc, argv);
75 TRACE() <<
"Type of plugin is not specified";
79 QString type = app.arguments().at(1);
TRACE() << type;
81 fcntl(fileno(stdin), F_SETFL, fcntl(fileno(stdin), F_GETFL, 0) | O_NONBLOCK);
88 fprintf(stdout,
"process started");
91 QObject::connect(
process, SIGNAL(processStopped()), &app, SLOT(quit()));