Mercurial > hg > xemacs-beta
comparison src/sysdep.c @ 157:6b37e6ddd302 r20-3b5
Import from CVS: tag r20-3b5
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:40:41 +0200 |
parents | 43dd3413c7c7 |
children | 0132846995bd |
comparison
equal
deleted
inserted
replaced
156:60baf0b43294 | 157:6b37e6ddd302 |
---|---|
371 begin to block. Otherwise we may end up blocking for a | 371 begin to block. Otherwise we may end up blocking for a |
372 signal that has already arrived and isn't coming again. | 372 signal that has already arrived and isn't coming again. |
373 Can you say "race condition"? | 373 Can you say "race condition"? |
374 | 374 |
375 I assume that the system calls sigpause() or sigsuspend() | 375 I assume that the system calls sigpause() or sigsuspend() |
376 provide this atomicness. If you're getting hangs in | 376 to provide this atomicness. If you're getting hangs in |
377 sigpause()/sigsuspend(), then your OS doesn't | 377 sigpause()/sigsuspend(), then your OS doesn't |
378 implement this properly (this applies under hpux9, | 378 implement this properly (this applies under hpux9, |
379 for example). Try defining BROKEN_WAIT_FOR_SIGNAL. */ | 379 for example). Try defining BROKEN_WAIT_FOR_SIGNAL. */ |
380 EMACS_WAIT_FOR_SIGNAL (SIGCHLD); | 380 EMACS_WAIT_FOR_SIGNAL (SIGCHLD); |
381 continue; | 381 continue; |
1322 /* Getting and setting emacs_tty structures */ | 1322 /* Getting and setting emacs_tty structures */ |
1323 /* ------------------------------------------------------ */ | 1323 /* ------------------------------------------------------ */ |
1324 | 1324 |
1325 /* It's wrong to encase these into #ifdef HAVE_TTY because we need | 1325 /* It's wrong to encase these into #ifdef HAVE_TTY because we need |
1326 them for child TTY processes. */ | 1326 them for child TTY processes. */ |
1327 /* However, this does break NT support while we don't do child TTY processes */ | |
1328 #ifndef WINDOWSNT | |
1327 | 1329 |
1328 /* Set *TC to the parameters associated with the terminal FD. | 1330 /* Set *TC to the parameters associated with the terminal FD. |
1329 Return zero if all's well, or -1 if we ran into an error we | 1331 Return zero if all's well, or -1 if we ran into an error we |
1330 couldn't deal with. */ | 1332 couldn't deal with. */ |
1331 int | 1333 int |
1462 | 1464 |
1463 /* We have survived the tempest. */ | 1465 /* We have survived the tempest. */ |
1464 return 0; | 1466 return 0; |
1465 } | 1467 } |
1466 | 1468 |
1469 #endif /* WINDOWSNT */ | |
1467 | 1470 |
1468 /* ------------------------------------------------------ */ | 1471 /* ------------------------------------------------------ */ |
1469 /* Initializing a device */ | 1472 /* Initializing a device */ |
1470 /* ------------------------------------------------------ */ | 1473 /* ------------------------------------------------------ */ |
1471 | 1474 |