Mercurial > hg > xemacs-beta
comparison src/event-stream.c @ 276:6330739388db r21-0b36
Import from CVS: tag r21-0b36
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:30:37 +0200 |
parents | c5d627a313b1 |
children | 90d73dddcdc4 |
comparison
equal
deleted
inserted
replaced
275:a68ae4439f57 | 276:6330739388db |
---|---|
1326 | 1326 |
1327 #if !defined (SIGIO) && !defined (DONT_POLL_FOR_QUIT) | 1327 #if !defined (SIGIO) && !defined (DONT_POLL_FOR_QUIT) |
1328 extern int poll_for_quit_id; | 1328 extern int poll_for_quit_id; |
1329 #endif | 1329 #endif |
1330 | 1330 |
1331 #ifndef SIGCHLD | 1331 #if defined(HAVE_UNIX_PROCESSES) && !defined(SIGCHLD) |
1332 extern int poll_for_sigchld_id; | 1332 extern int poll_for_sigchld_id; |
1333 #endif | 1333 #endif |
1334 | 1334 |
1335 void | 1335 void |
1336 event_stream_deal_with_async_timeout (int interval_id) | 1336 event_stream_deal_with_async_timeout (int interval_id) |
1337 { | 1337 { |
1338 /* This function can GC */ | 1338 /* This function can GC */ |
1339 Lisp_Object humpty, dumpty; | 1339 Lisp_Object humpty, dumpty; |
1340 #if (!defined (SIGIO) && !defined (DONT_POLL_FOR_QUIT)) || !defined (SIGCHLD) | 1340 #if ((!defined (SIGIO) && !defined (DONT_POLL_FOR_QUIT)) \ |
1341 || defined(HAVE_UNIX_PROCESSES) && !defined(SIGCHLD)) | |
1341 int id = | 1342 int id = |
1342 #endif | 1343 #endif |
1343 event_stream_resignal_wakeup (interval_id, 1, &humpty, &dumpty); | 1344 event_stream_resignal_wakeup (interval_id, 1, &humpty, &dumpty); |
1344 | 1345 |
1345 #if !defined (SIGIO) && !defined (DONT_POLL_FOR_QUIT) | 1346 #if !defined (SIGIO) && !defined (DONT_POLL_FOR_QUIT) |
1349 quit_check_signal_tick_count++; | 1350 quit_check_signal_tick_count++; |
1350 return; | 1351 return; |
1351 } | 1352 } |
1352 #endif | 1353 #endif |
1353 | 1354 |
1354 #if !defined (SIGCHLD) | 1355 #if defined(HAVE_UNIX_PROCESSES) && !defined(SIGCHLD) |
1355 if (id == poll_for_sigchld_id) | 1356 if (id == poll_for_sigchld_id) |
1356 { | 1357 { |
1357 kick_status_notify (); | 1358 kick_status_notify (); |
1358 return; | 1359 return; |
1359 } | 1360 } |