diff options
| author | Lars Magne Ingebrigtsen | 2011-05-01 02:04:17 +0200 |
|---|---|---|
| committer | Lars Magne Ingebrigtsen | 2011-05-01 02:04:17 +0200 |
| commit | 1ef14cb4b0f726a5e6a86e20fed8cfecb22c67d5 (patch) | |
| tree | 3278d1d473acef1cbac1551f80e9fd815a08fb99 /src/sysdep.c | |
| parent | dcb79f208ab9e2e1e8e0d4e9810ca25c1a660eaf (diff) | |
| download | emacs-1ef14cb4b0f726a5e6a86e20fed8cfecb22c67d5.tar.gz emacs-1ef14cb4b0f726a5e6a86e20fed8cfecb22c67d5.zip | |
Extend `call-process' to take the `(:file "file")' syntax to redirect
STDOUT to a file.
Diffstat (limited to 'src/sysdep.c')
| -rw-r--r-- | src/sysdep.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/sysdep.c b/src/sysdep.c index ca7de4f54bb..9a7045f3610 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -302,6 +302,19 @@ int wait_debugging EXTERNALLY_VISIBLE; | |||
| 302 | void | 302 | void |
| 303 | wait_for_termination (int pid) | 303 | wait_for_termination (int pid) |
| 304 | { | 304 | { |
| 305 | wait_for_termination_1 (pid, 0); | ||
| 306 | } | ||
| 307 | |||
| 308 | /* Like the above, but allow keyboard interruption. */ | ||
| 309 | void | ||
| 310 | interruptible_wait_for_termination (int pid) | ||
| 311 | { | ||
| 312 | wait_for_termination_1 (pid, 1); | ||
| 313 | } | ||
| 314 | |||
| 315 | void | ||
| 316 | wait_for_termination_1 (int pid, int interruptible) | ||
| 317 | { | ||
| 305 | while (1) | 318 | while (1) |
| 306 | { | 319 | { |
| 307 | #if (defined (BSD_SYSTEM) || defined (HPUX)) && !defined(__GNU__) | 320 | #if (defined (BSD_SYSTEM) || defined (HPUX)) && !defined(__GNU__) |
| @@ -339,6 +352,8 @@ wait_for_termination (int pid) | |||
| 339 | sigsuspend (&empty_mask); | 352 | sigsuspend (&empty_mask); |
| 340 | #endif /* not WINDOWSNT */ | 353 | #endif /* not WINDOWSNT */ |
| 341 | #endif /* not BSD_SYSTEM, and not HPUX version >= 6 */ | 354 | #endif /* not BSD_SYSTEM, and not HPUX version >= 6 */ |
| 355 | if (interruptible) | ||
| 356 | QUIT; | ||
| 342 | } | 357 | } |
| 343 | } | 358 | } |
| 344 | 359 | ||