Correction to build tsyslogd again

This commit is contained in:
Joey Schulze 2007-05-30 15:43:45 +00:00
parent bdcaeb12ea
commit 2d16b292d4

View File

@ -835,7 +835,9 @@ int main(argc, argv)
{
register int i;
register char *p;
#ifndef TESTING
ssize_t msglen;
#endif
#if !defined(__GLIBC__)
int len, num_fds;
#else /* __GLIBC__ */
@ -1060,8 +1062,10 @@ int main(argc, argv)
(char **) 0 )
{
logerror("Cannot allocate memory for message parts table.");
#ifndef TESTING
if (getpid() != ppid)
kill (ppid, SIGTERM);
#endif
die(0);
}
for(i= 0; i < num_fds; ++i)