~stolowski/unity-scopes-api/fix-user-agent-in-preview-rtm

« back to all changes in this revision

Viewing changes to scoperunner/scoperunner.cpp

  • Committer: Pawel Stolowski
  • Date: 2014-11-04 14:33:07 UTC
  • mfrom: (241.1.20 unity-scopes-api)
  • Revision ID: pawel.stolowski@canonical.com-20141104143307-cs70gjyowjtwpk69
Merged trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include <unity/scopes/ScopeExceptions.h>
29
29
#include <unity/UnityExceptions.h>
30
30
 
31
 
#include <unity/scopes/internal/max_align_clang_bug.h>  // TODO: remove this once clang 3.5.2 is released
32
31
#include <boost/algorithm/string.hpp>
33
32
#include <boost/filesystem.hpp>
34
33
#include <core/posix/signal.h>
201
200
int
202
201
main(int argc, char* argv[])
203
202
{
204
 
    // sig masks are inherited by child processes when forked.
205
 
    // we do not want to inherit our parent's (scoperegistry)
206
 
    // sig mask, hence we clear it immediately on entry.
207
 
    sigset_t set;
208
 
    ::sigemptyset(&set);
209
 
    ::pthread_sigmask(SIG_SETMASK, &set, nullptr);
210
 
 
211
203
    prog_name = basename(argv[0]);
212
204
    if (argc != 3)
213
205
    {