#include <sys/signal.h>
#include <stdio.h>
#include <unistd.h>

void handler_usr1 (int i)
{
  puts ("got signal usr1");
}

void handler_alrm (int i)
{
  puts ("got signal ALRM");
}

int main ()
{
  int i = 0;

  signal (SIGUSR1, handler_usr1);
  signal (SIGALRM, handler_alrm);

  puts ("Put breakpoint here");

  while (i++ < 20)
     sleep (1);
}


#include <signal.h>
#include <stdio.h>
#include <unistd.h>

void handler_usr1 (int i)
{
  puts ("got signal usr1");
}

void handler_alrm (int i)
{
  puts ("got signal ALRM");
}

int main ()
{
  int i = 0;

  signal (SIGUSR1, handler_usr1);
  signal (SIGALRM, handler_alrm);

  puts ("Put breakpoint here");

  while (i++ < 20)
     sleep (1);
}


Include signal.h instead of sys/signal.h in the test case.
[TestSendSignal] Include signal.h instead of sys/signal.h in the test case.

Summary:
Android API-9 does not have sys/signal.h. However, all sys/signal.h
has when present is an include of signal.h.

Test Plan: dotest.py -p TestSendSignal on linux and Android.

Reviewers: chaoren

Reviewed By: chaoren

Subscribers: tberghammer, lldb-commits

Differential Revision: http://reviews.llvm.org/D9779

git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@237381 91177308-0d34-0410-b5e6-96231b3b80d8
