#include <config.h>
-#include <errno.h>
-#include <stdlib.h>
+#include <cerrno>
+#include <cstdlib>
#include <unistd.h>
#include <sys/wait.h>
#include "syscontr.h"
#endif
+using std::endl;
+
+#ifndef CXX_GLOBAL_CSTD
+using std::strerror;
+#endif
+
//
// Default constructor
//
void
SystemcallsSingletoncontroller::timer() {
+ lyxerr << "Tick" << endl;
// check each entry of our list, if it's finished
ControlledCalls *prev = 0;
- for (ControlledCalls *actCall=sysCalls; actCall; actCall=actCall->next)
+ for (ControlledCalls *actCall= sysCalls; actCall; actCall= actCall->next)
{
- pid_t pid=actCall->call->getpid();
+ pid_t pid= actCall->call->getpid();
int stat_loc;
int waitrpid = waitpid(pid, &stat_loc, WNOHANG);
if (waitrpid == -1) {