~ubuntu-branches/ubuntu/utopic/coreutils/utopic-proposed

« back to all changes in this revision

Viewing changes to lib/sigaction.c

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-11-28 03:03:42 UTC
  • mfrom: (8.3.4 sid)
  • Revision ID: package-import@ubuntu.com-20121128030342-21zanj8354gas5gr
Tags: 8.20-3ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Make 'uname -i -p' return the real processor/hardware, instead of
    unknown.
  - Build-depend on gettext:any instead of on gettext, so that apt-get can
    properly resolve build-dependencies on the tool when cross-building.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* POSIX compatible signal blocking.
2
 
   Copyright (C) 2008-2011 Free Software Foundation, Inc.
 
2
   Copyright (C) 2008-2012 Free Software Foundation, Inc.
3
3
   Written by Eric Blake <ebb9@byu.net>, 2008.
4
4
 
5
5
   This program is free software: you can redistribute it and/or modify
24
24
#include <stdint.h>
25
25
#include <stdlib.h>
26
26
 
27
 
/* This implementation of sigaction is tailored to Woe32 behavior:
 
27
/* This implementation of sigaction is tailored to native Windows behavior:
28
28
   signal() has SysV semantics (ie. the handler is uninstalled before
29
29
   it is invoked).  This is an inherent data race if an asynchronous
30
30
   signal is sent twice in a row before we can reinstall our handler,
39
39
     - We don't implement SA_NOCLDSTOP or SA_NOCLDWAIT, because SIGCHLD
40
40
       is not defined.
41
41
     - We don't implement SA_ONSTACK, because sigaltstack() is not present.
42
 
     - We ignore SA_RESTART, because blocking Win32 calls are not interrupted
43
 
       anyway when an asynchronous signal occurs, and the MSVCRT runtime
44
 
       never sets errno to EINTR.
 
42
     - We ignore SA_RESTART, because blocking native Windows API calls are
 
43
       not interrupted anyway when an asynchronous signal occurs, and the
 
44
       MSVCRT runtime never sets errno to EINTR.
45
45
     - We don't implement SA_SIGINFO because it is impossible to do so
46
46
       portably.
47
47