From 0745d601457f2f6d58093cd7769f45df220b167f Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 24 May 1994 20:18:10 +0000 Subject: [PATCH] moved cwd into load_globals --- logging.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/logging.c b/logging.c index ad27bf193..bb21ee0a7 100644 --- a/logging.c +++ b/logging.c @@ -79,7 +79,6 @@ static char logline[MAXLOGLEN + 8]; void log_error(code) int code; { - char cwd[MAXPATHLEN + 1]; int argc; char **argv; mode_t oldmask; @@ -106,15 +105,6 @@ void log_error(code) */ p = logline + strlen(logline); - /* - * so we know where we are... - */ -#ifdef HAVE_GETCWD - getcwd(cwd, (size_t) (MAXPATHLEN + 1)); -#else - getwd(cwd); -#endif /* HAVE_GETCWD */ - switch (code) { case ALL_SYSTEMS_GO: @@ -439,7 +429,8 @@ static void send_mail() * This function gets rid of all the ugly zombies */ -static RETSIGTYPE reapchild() +static RETSIGTYPE reapchild(sig) + int sig; { (void) wait(NULL); (void) signal(SIGCHLD, reapchild);