diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-03-06 18:23:17 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-03-06 18:23:17 (GMT) |
commit | e1a31a44c946d58a1b4654e5daa2d10d9c6f881d (patch) | |
tree | 7ce434b9bfb30c2de74cfe1f226c2ceda4ee8178 /apps/mmi-browser.cpp | |
parent | 8c4977361f9e7998da298b9648f3ad4be5e772ff (diff) | |
download | uscxml-e1a31a44c946d58a1b4654e5daa2d10d9c6f881d.zip uscxml-e1a31a44c946d58a1b4654e5daa2d10d9c6f881d.tar.gz uscxml-e1a31a44c946d58a1b4654e5daa2d10d9c6f881d.tar.bz2 |
Changed directory monitor to polling behaviour :(
Diffstat (limited to 'apps/mmi-browser.cpp')
-rw-r--r-- | apps/mmi-browser.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/apps/mmi-browser.cpp b/apps/mmi-browser.cpp index 1cb82e3..8d3a12f 100644 --- a/apps/mmi-browser.cpp +++ b/apps/mmi-browser.cpp @@ -12,7 +12,7 @@ #ifdef HAS_SIGNAL_H void handler(int s) { - printf("Caught SIGPIPE ############\n"); + printf("Caught SIGPIPE ############\n"); } #endif @@ -34,24 +34,24 @@ int main(int argc, char** argv) { using namespace uscxml; #ifdef HAS_SIGNAL_H - // disable SIGPIPE + // disable SIGPIPE // struct sigaction act; // act.sa_handler=SIG_IGN; // sigemptyset(&act.sa_mask); // act.sa_flags=0; // sigaction(SIGPIPE, &act, NULL); - - // signal(SIGPIPE, handler); - - signal(SIGPIPE, SIG_IGN); - - // struct sigaction act; - // int r; - // memset(&act, 0, sizeof(act)); - // act.sa_handler = SIG_IGN; - // act.sa_flags = SA_RESTART; - // r = sigaction(SIGPIPE, &act, NULL); - + + // signal(SIGPIPE, handler); + + signal(SIGPIPE, SIG_IGN); + + // struct sigaction act; + // int r; + // memset(&act, 0, sizeof(act)); + // act.sa_handler = SIG_IGN; + // act.sa_flags = SA_RESTART; + // r = sigaction(SIGPIPE, &act, NULL); + #endif if (argc < 2) { @@ -87,7 +87,7 @@ int main(int argc, char** argv) { interpreter->setCmdLineOptions(argc, argv); interpreter->start(); while(interpreter->runOnMainThread(25)); - // interpreter->interpret(); + // interpreter->interpret(); delete interpreter; } |