144 |
|
|
145 |
char *p; |
char *p; |
146 |
|
|
147 |
ASSERT(chomp); |
ASSERT(string); |
148 |
|
|
149 |
if ((p= strchr(string, '\r')) || |
if ((p= strchr(string, '\r')) || |
150 |
(p= strchr(string, '\n'))) { |
(p= strchr(string, '\n'))) { |
430 |
Mail_T r; |
Mail_T r; |
431 |
Resource_T q; |
Resource_T q; |
432 |
Checksum_T c; |
Checksum_T c; |
433 |
|
|
434 |
|
ASSERT(p); |
435 |
|
|
436 |
printf("%-21s = %s\n", "Process Name", p->name); |
printf("%-21s = %s\n", "Process Name", p->name); |
437 |
printf(" %-20s = %s\n", "Group", is_str_defined(p->group)); |
printf(" %-20s = %s\n", "Group", is_str_defined(p->group)); |
464 |
if ( n->family == AF_INET ) { |
if ( n->family == AF_INET ) { |
465 |
|
|
466 |
printf(" %-20s = %s:%d%s [protocol %s]\n", "Host:Port", |
printf(" %-20s = %s:%d%s [protocol %s]\n", "Host:Port", |
467 |
n->hostname, n->port, n->request?n->request:"", n->protocol->name); |
n->hostname, n->port, n->request?n->request:"", |
468 |
|
n->protocol->name); |
469 |
} else if ( n->family == AF_UNIX ) { |
} else if ( n->family == AF_UNIX ) { |
470 |
|
|
471 |
printf(" %-20s = %s [protocol %s]\n", "Unix Socket", |
printf(" %-20s = %s [protocol %s]\n", "Unix Socket", |
669 |
pid_t pid; |
pid_t pid; |
670 |
int kill_return= 0; |
int kill_return= 0; |
671 |
|
|
672 |
|
ASSERT(p); |
673 |
|
|
674 |
errno= 0; |
errno= 0; |
675 |
|
|
676 |
if ((pid= get_pid(p->pidfile))) { |
if ((pid= get_pid(p->pidfile))) { |
726 |
} |
} |
727 |
|
|
728 |
return xstrdup(D); |
return xstrdup(D); |
729 |
|
|
730 |
} |
} |
731 |
|
|
732 |
|
|
824 |
int set_md5sum(char **dest, char *file) { |
int set_md5sum(char **dest, char *file) { |
825 |
|
|
826 |
ASSERT(dest); |
ASSERT(dest); |
|
ASSERT(*dest); |
|
827 |
ASSERT(file); |
ASSERT(file); |
828 |
|
|
829 |
if (! (*dest= get_md5sum(file))) { |
if (! (*dest= get_md5sum(file))) { |