File:  [DVB] / dietlibc / lib / abort.c
Revision 1.7: download - view: text, annotated - select for diffs
Sat Aug 23 16:12:47 2003 UTC (20 years, 9 months ago) by leitner
Branches: MAIN
CVS tags: HEAD
More warnings killed (Yuri Kozlov)

#include <sys/types.h>
#include <signal.h>
#include <stdlib.h>
#include <stdio.h>

#ifndef __PIC__
void __stdio_flushall(void) __attribute__((weak));
void __stdio_flushall(void) { }
#else
#include "dietstdio.h"
#endif

void abort() {
  sigset_t t;
  __stdio_flushall();
  if (!sigemptyset(&t) && !sigaddset(&t, SIGABRT))
    sigprocmask(SIG_UNBLOCK, &t, 0);
  while (1)
    if (raise(SIGABRT))
      exit(127);
}

LinuxTV legacy CVS <linuxtv.org/cvs>