Mercurial > emacs
comparison src/process.c @ 48168:8314ced58ef2
(wait_reading_process_input):
Test POLLING_PROBLEM_IN_SELECT, not hpux.
Avoid initialization for auto Lisp_Object var.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 06 Nov 2002 05:01:46 +0000 |
parents | 21d7f2c18976 |
children | a54c4e29ca9e |
comparison
equal
deleted
inserted
replaced
48167:9fca08a4ea91 | 48168:8314ced58ef2 |
---|---|
3714 { | 3714 { |
3715 EMACS_GET_TIME (end_time); | 3715 EMACS_GET_TIME (end_time); |
3716 EMACS_SET_SECS_USECS (timeout, time_limit, microsecs); | 3716 EMACS_SET_SECS_USECS (timeout, time_limit, microsecs); |
3717 EMACS_ADD_TIME (end_time, end_time, timeout); | 3717 EMACS_ADD_TIME (end_time, end_time, timeout); |
3718 } | 3718 } |
3719 #ifdef hpux | 3719 #ifdef POLLING_PROBLEM_IN_SELECT |
3720 /* AlainF 5-Jul-1996 | 3720 /* AlainF 5-Jul-1996 |
3721 HP-UX 10.10 seem to have problems with signals coming in | 3721 HP-UX 10.10 seem to have problems with signals coming in |
3722 Causes "poll: interrupted system call" messages when Emacs is run | 3722 Causes "poll: interrupted system call" messages when Emacs is run |
3723 in an X window | 3723 in an X window |
3724 Turn off periodic alarms (in case they are in use), | 3724 Turn off periodic alarms (in case they are in use), |
6410 EMACS_TIME end_time, timeout; | 6410 EMACS_TIME end_time, timeout; |
6411 SELECT_TYPE waitchannels; | 6411 SELECT_TYPE waitchannels; |
6412 int xerrno; | 6412 int xerrno; |
6413 /* Either nil or a cons cell, the car of which is of interest and | 6413 /* Either nil or a cons cell, the car of which is of interest and |
6414 may be changed outside of this routine. */ | 6414 may be changed outside of this routine. */ |
6415 Lisp_Object wait_for_cell = Qnil; | 6415 Lisp_Object wait_for_cell; |
6416 | |
6417 wait_for_cell = Qnil; | |
6416 | 6418 |
6417 /* If waiting for non-nil in a cell, record where. */ | 6419 /* If waiting for non-nil in a cell, record where. */ |
6418 if (CONSP (read_kbd)) | 6420 if (CONSP (read_kbd)) |
6419 { | 6421 { |
6420 wait_for_cell = read_kbd; | 6422 wait_for_cell = read_kbd; |