~ubuntu-branches/ubuntu/wily/mir/wily-proposed

« back to all changes in this revision

Viewing changes to src/server/run_mir.cpp

  • Committer: Package Import Robot
  • Author(s): CI Train Bot
  • Date: 2015-05-12 13:12:55 UTC
  • mto: This revision was merged to the branch mainline in revision 96.
  • Revision ID: package-import@ubuntu.com-20150512131255-y7z12i8n4pbvo70x
Tags: upstream-0.13.0+15.10.20150512
ImportĀ upstreamĀ versionĀ 0.13.0+15.10.20150512

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
#include <csignal>
33
33
#include <cstdlib>
34
34
#include <cassert>
 
35
#include <sys/types.h>
 
36
#include <unistd.h>
35
37
 
36
38
namespace
37
39
{
123
125
    if (!termination_exception)
124
126
    {
125
127
        termination_exception = std::current_exception();
126
 
        raise(SIGTERM);
 
128
        kill(getpid(), SIGTERM);
127
129
    }
128
130
}