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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|