version 1.1, 2009/06/01 22:58:49 |
version 1.2, 2009/06/05 07:15:58 |
|
|
int mode; |
int mode; |
struct buffer *b; |
struct buffer *b; |
char *name; |
char *name; |
|
char rpathbuf[MAXPATHLEN]; |
|
|
|
if (realpath(path, rpathbuf) == NULL) |
|
strlcpy(rpathbuf, path, sizeof rpathbuf); |
|
setproctitle("client (%s)", rpathbuf); |
|
|
if (lstat(path, &sb) != 0) { |
if (lstat(path, &sb) != 0) { |
if (start_server && errno == ENOENT) { |
if (start_server && errno == ENOENT) { |
if ((cctx->srv_fd = server_start(path)) == -1) |
if ((cctx->srv_fd = server_start(path)) == -1) |
|
|
siginit(); |
siginit(); |
|
|
logfile("client"); |
logfile("client"); |
setproctitle("client"); |
|
|
|
error = NULL; |
error = NULL; |
xtimeout = INFTIM; |
xtimeout = INFTIM; |