comparison src/process.c @ 93324:41f9d37301a2

(server_accept_connection): Simplify naming. (emacs_get_tty_pgrp): Use SDATA.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Thu, 27 Mar 2008 20:52:24 +0000
parents 5dbe361f12c2
children 0c2f4b91340c
comparison
equal deleted inserted replaced
93323:06e93ffa2e9f 93324:41f9d37301a2
4053 #ifdef HAVE_LOCAL_SOCKETS 4053 #ifdef HAVE_LOCAL_SOCKETS
4054 case AF_LOCAL: 4054 case AF_LOCAL:
4055 #endif 4055 #endif
4056 default: 4056 default:
4057 caller = Fnumber_to_string (make_number (connect_counter)); 4057 caller = Fnumber_to_string (make_number (connect_counter));
4058 caller = concat3 (build_string (" <*"), caller, build_string ("*>")); 4058 caller = concat3 (build_string (" <"), caller, build_string (">"));
4059 break; 4059 break;
4060 } 4060 }
4061 4061
4062 /* Create a new buffer name for this process if it doesn't have a 4062 /* Create a new buffer name for this process if it doesn't have a
4063 filter. The new buffer name is based on the buffer name or 4063 filter. The new buffer name is based on the buffer name or
5707 if (ioctl (p->infd, TIOCGPGRP, &gid) == -1 && ! NILP (p->tty_name)) 5707 if (ioctl (p->infd, TIOCGPGRP, &gid) == -1 && ! NILP (p->tty_name))
5708 { 5708 {
5709 int fd; 5709 int fd;
5710 /* Some OS:es (Solaris 8/9) does not allow TIOCGPGRP from the 5710 /* Some OS:es (Solaris 8/9) does not allow TIOCGPGRP from the
5711 master side. Try the slave side. */ 5711 master side. Try the slave side. */
5712 fd = emacs_open (XSTRING (p->tty_name)->data, O_RDONLY, 0); 5712 fd = emacs_open (SDATA (p->tty_name), O_RDONLY, 0);
5713 5713
5714 if (fd != -1) 5714 if (fd != -1)
5715 { 5715 {
5716 ioctl (fd, TIOCGPGRP, &gid); 5716 ioctl (fd, TIOCGPGRP, &gid);
5717 emacs_close (fd); 5717 emacs_close (fd);
5890 Your configuration files are messed up. 5890 Your configuration files are messed up.
5891 /* If your system configuration files define SIGNALS_VIA_CHARACTERS, 5891 /* If your system configuration files define SIGNALS_VIA_CHARACTERS,
5892 you'd better be using one of the alternatives above! */ 5892 you'd better be using one of the alternatives above! */
5893 #endif /* ! defined (TCGETA) */ 5893 #endif /* ! defined (TCGETA) */
5894 #endif /* ! defined (TIOCGLTC) && defined (TIOCGETC) */ 5894 #endif /* ! defined (TIOCGLTC) && defined (TIOCGETC) */
5895 /* In this case, the code above should alway returns. */ 5895 /* In this case, the code above should alway return. */
5896 abort (); 5896 abort ();
5897 #endif /* ! defined HAVE_TERMIOS */ 5897 #endif /* ! defined HAVE_TERMIOS */
5898 5898
5899 /* The code above may fall through if it can't 5899 /* The code above may fall through if it can't
5900 handle the signal. */ 5900 handle the signal. */