diff options
| author | Paul Eggert | 2014-04-16 12:43:46 -0700 |
|---|---|---|
| committer | Paul Eggert | 2014-04-16 12:43:46 -0700 |
| commit | 290d7ac277986bd118e594a8100b3f40e4492cb1 (patch) | |
| tree | d63a3aa61cac577dd119665edaffe2def8d194e2 /src/sysdep.c | |
| parent | 37eccff4f72c5a36dcd4b89d417b0047aab84e50 (diff) | |
| parent | b262bde327db2cd9b2f01f2d3ed946d0b188cb9d (diff) | |
| download | emacs-290d7ac277986bd118e594a8100b3f40e4492cb1.tar.gz emacs-290d7ac277986bd118e594a8100b3f40e4492cb1.zip | |
Merge from emacs-24; up to 2014-04-16T15:28:26Z!monnier@iro.umontreal.ca
Diffstat (limited to 'src/sysdep.c')
| -rw-r--r-- | src/sysdep.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sysdep.c b/src/sysdep.c index 7a888834bcc..e5b29205e96 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -1509,7 +1509,9 @@ emacs_sigaction_init (struct sigaction *action, signal_handler_t handler) | |||
| 1509 | /* When handling a signal, block nonfatal system signals that are caught | 1509 | /* When handling a signal, block nonfatal system signals that are caught |
| 1510 | by Emacs. This makes race conditions less likely. */ | 1510 | by Emacs. This makes race conditions less likely. */ |
| 1511 | sigaddset (&action->sa_mask, SIGALRM); | 1511 | sigaddset (&action->sa_mask, SIGALRM); |
| 1512 | #ifdef SIGCHLD | ||
| 1512 | sigaddset (&action->sa_mask, SIGCHLD); | 1513 | sigaddset (&action->sa_mask, SIGCHLD); |
| 1514 | #endif | ||
| 1513 | #ifdef SIGDANGER | 1515 | #ifdef SIGDANGER |
| 1514 | sigaddset (&action->sa_mask, SIGDANGER); | 1516 | sigaddset (&action->sa_mask, SIGDANGER); |
| 1515 | #endif | 1517 | #endif |
| @@ -1714,7 +1716,9 @@ init_signals (bool dumping) | |||
| 1714 | # ifdef SIGBUS | 1716 | # ifdef SIGBUS |
| 1715 | sys_siglist[SIGBUS] = "Bus error"; | 1717 | sys_siglist[SIGBUS] = "Bus error"; |
| 1716 | # endif | 1718 | # endif |
| 1719 | # ifdef SIGCHLD | ||
| 1717 | sys_siglist[SIGCHLD] = "Child status changed"; | 1720 | sys_siglist[SIGCHLD] = "Child status changed"; |
| 1721 | # endif | ||
| 1718 | # ifdef SIGCONT | 1722 | # ifdef SIGCONT |
| 1719 | sys_siglist[SIGCONT] = "Continued"; | 1723 | sys_siglist[SIGCONT] = "Continued"; |
| 1720 | # endif | 1724 | # endif |
| @@ -2185,6 +2189,9 @@ emacs_fopen (char const *file, char const *mode) | |||
| 2185 | int | 2189 | int |
| 2186 | emacs_pipe (int fd[2]) | 2190 | emacs_pipe (int fd[2]) |
| 2187 | { | 2191 | { |
| 2192 | #ifdef MSDOS | ||
| 2193 | return pipe (fd); | ||
| 2194 | #else /* !MSDOS */ | ||
| 2188 | int result = pipe2 (fd, O_CLOEXEC); | 2195 | int result = pipe2 (fd, O_CLOEXEC); |
| 2189 | if (! O_CLOEXEC && result == 0) | 2196 | if (! O_CLOEXEC && result == 0) |
| 2190 | { | 2197 | { |
| @@ -2192,6 +2199,7 @@ emacs_pipe (int fd[2]) | |||
| 2192 | fcntl (fd[1], F_SETFD, FD_CLOEXEC); | 2199 | fcntl (fd[1], F_SETFD, FD_CLOEXEC); |
| 2193 | } | 2200 | } |
| 2194 | return result; | 2201 | return result; |
| 2202 | #endif /* !MSDOS */ | ||
| 2195 | } | 2203 | } |
| 2196 | 2204 | ||
| 2197 | /* Approximate posix_close and POSIX_CLOSE_RESTART well enough for Emacs. | 2205 | /* Approximate posix_close and POSIX_CLOSE_RESTART well enough for Emacs. |