emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lib-src/emacsserver.c


From: Pavel Janík
Subject: [Emacs-diffs] Changes to emacs/lib-src/emacsserver.c
Date: Wed, 19 Dec 2001 02:23:40 -0500

Index: emacs/lib-src/emacsserver.c
diff -c emacs/lib-src/emacsserver.c:1.40 emacs/lib-src/emacsserver.c:1.41
*** emacs/lib-src/emacsserver.c:1.40    Tue Dec 18 11:00:01 2001
--- emacs/lib-src/emacsserver.c Wed Dec 19 02:23:39 2001
***************
*** 26,32 ****
--- 26,36 ----
     up to the Emacs which then executes them.  */
  
  #define NO_SHORTNAMES
+ 
+ #ifdef HAVE_CONFIG_H
  #include "config.h"
+ #endif
+ 
  #include <signal.h>
  #undef signal
  
***************
*** 240,246 ****
    if (openfiles == 0)
      abort ();
  
!   /* 
     * Open up an AF_UNIX socket in this person's home directory
     */
  
--- 244,250 ----
    if (openfiles == 0)
      abort ();
  
!   /*
     * Open up an AF_UNIX socket in this person's home directory
     */
  
***************
*** 274,280 ****
        perror_1 ("unlink");
        exit (1);
      }
! #else  
    if ((homedir = getenv ("HOME")) == NULL)
      fatal_error ("No home directory\n");
  
--- 278,284 ----
        perror_1 ("unlink");
        exit (1);
      }
! #else
    if ((homedir = getenv ("HOME")) == NULL)
      fatal_error ("No home directory\n");
  
***************
*** 398,411 ****
          fflush (infile);
  
          /* If command is close, close connection to client.  */
!         if (strncmp (code, "Close:", 6) == 0) 
!           if (infd > 2) 
              {
                fclose (infile);
                close (infd);
              }
          continue;
!       } 
      }
  }
  
--- 402,415 ----
          fflush (infile);
  
          /* If command is close, close connection to client.  */
!         if (strncmp (code, "Close:", 6) == 0)
!           if (infd > 2)
              {
                fclose (infile);
                close (infd);
              }
          continue;
!       }
      }
  }
  



reply via email to

[Prev in Thread] Current Thread [Next in Thread]