/[emacs]/emacs/lib-src/emacsserver.c
ViewVC logotype

Diff of /emacs/lib-src/emacsserver.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.40 by fx, Tue Dec 18 16:00:01 2001 UTC revision 1.41 by pj, Wed Dec 19 07:23:39 2001 UTC
# Line 26  Boston, MA 02111-1307, USA.  */ Line 26  Boston, MA 02111-1307, USA.  */
26     up to the Emacs which then executes them.  */     up to the Emacs which then executes them.  */
27    
28  #define NO_SHORTNAMES  #define NO_SHORTNAMES
29    
30    #ifdef HAVE_CONFIG_H
31  #include "config.h"  #include "config.h"
32    #endif
33    
34  #include <signal.h>  #include <signal.h>
35  #undef signal  #undef signal
36    
# Line 240  main (argc, argv) Line 244  main (argc, argv)
244    if (openfiles == 0)    if (openfiles == 0)
245      abort ();      abort ();
246    
247    /*    /*
248     * Open up an AF_UNIX socket in this person's home directory     * Open up an AF_UNIX socket in this person's home directory
249     */     */
250    
# Line 274  main (argc, argv) Line 278  main (argc, argv)
278        perror_1 ("unlink");        perror_1 ("unlink");
279        exit (1);        exit (1);
280      }      }
281  #else    #else
282    if ((homedir = getenv ("HOME")) == NULL)    if ((homedir = getenv ("HOME")) == NULL)
283      fatal_error ("No home directory\n");      fatal_error ("No home directory\n");
284    
# Line 398  main (argc, argv) Line 402  main (argc, argv)
402            fflush (infile);            fflush (infile);
403    
404            /* If command is close, close connection to client.  */            /* If command is close, close connection to client.  */
405            if (strncmp (code, "Close:", 6) == 0)            if (strncmp (code, "Close:", 6) == 0)
406              if (infd > 2)              if (infd > 2)
407                {                {
408                  fclose (infile);                  fclose (infile);
409                  close (infd);                  close (infd);
410                }                }
411            continue;            continue;
412          }          }
413      }      }
414  }  }
415    

Legend:
Removed from v.1.40  
changed lines
  Added in v.1.41

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26