~thomas-voss/dbus-cpp/fix-packaging

« back to all changes in this revision

Viewing changes to tests/dbus_test.cpp

  • Committer: thomas-voss
  • Date: 2014-02-18 06:43:55 UTC
  • Revision ID: thomas.voss@canonical.com-20140218064355-ju0vvj81jdlbft7o
Adjust implementation of SigTermCatcher to use sigwait instead of signalfd's as qemu does not support signal fds.

Show diffs side-by-side

added added

removed removed

Lines of Context:
100
100
 
101
101
        std::thread t{[bus](){ bus->run(); }};
102
102
 
103
 
        sc.wait_for_signal_for(std::chrono::seconds{2});
 
103
        sc.wait_for_signal();
104
104
 
105
105
        if (t.joinable())
106
106
            t.join();