Mercurial > emacs
comparison src/sysdep.c @ 44099:0400b67840ba
(wait_for_termination): Use sigsuspend rather than sigpause.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Fri, 22 Mar 2002 22:53:13 +0000 |
parents | f92c4d87863a |
children | 01b93e5e53a7 |
comparison
equal
deleted
inserted
replaced
44098:b38366975f18 | 44099:0400b67840ba |
---|---|
485 { | 485 { |
486 sigunblock (sigmask (SIGCHLD)); | 486 sigunblock (sigmask (SIGCHLD)); |
487 break; | 487 break; |
488 } | 488 } |
489 | 489 |
490 /* FIXME: Since sigpause is not POSIX and its use is deprecated, | 490 sigsuspend (&empty_mask); |
491 this should probably be `sigsuspend (&empty_mask)', which is | |
492 POSIX. I'm not making that change right away because the | |
493 release is nearing. 2001-09-20 gerd. */ | |
494 sigpause (SIGEMPTYMASK); | |
495 #else /* not POSIX_SIGNALS */ | 491 #else /* not POSIX_SIGNALS */ |
496 #ifdef HAVE_SYSV_SIGPAUSE | 492 #ifdef HAVE_SYSV_SIGPAUSE |
497 sighold (SIGCHLD); | 493 sighold (SIGCHLD); |
498 if (0 > kill (pid, 0)) | 494 if (0 > kill (pid, 0)) |
499 { | 495 { |