Thread View: gnu.emacs.bug
1 messages
1 total messages
Started by Eirik Fuller
Tue, 26 Jan 1993 01:22
core dump in x_io_error_handler
Author: Eirik Fuller
Date: Tue, 26 Jan 1993 01:22
Date: Tue, 26 Jan 1993 01:22
35 lines
1627 bytes
1627 bytes
The enclosed patch cures a core dump in x_io_error_handler, in emacs
18.59 under SunOS 4.1.3. The core dump occurs with the command line
"emacs <&-" (assuming a suitable choice of shell, i.e. bash or sh).
This core dump occurs only when emacs is running as an X client.
*** x11term.c~ Sat Oct 24 00:31:56 1992
--- x11term.c Sat Jan 23 21:52:27 1993
***************
*** 2100,2121 ****
--- 2100,2123 ----
x_init_1 ()
{
#ifdef F_SETOWN
extern int old_fcntl_owner;
#endif
+ if (ConnectionNumber(XXdisplay) != 0) {
dup2 (ConnectionNumber(XXdisplay), 0);
#ifndef SYSV_STREAMS
/* Streams somehow keeps track of which descriptor number
is being used to talk to X. So it is not safe to substitute
descriptor 0. But it is safe to make descriptor 0 a copy of it. */
close (ConnectionNumber(XXdisplay));
ConnectionNumber(XXdisplay) = 0; /* Looks a little strange?
* check the def of the macro;
* it is a genuine lvalue */
#endif
+ }
#ifdef USG
setpgrp (); /* No arguments but equivalent in this case */
#else
setpgrp (0, getpid ());
#endif /* USG */
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads