moved cwd into load_globals

This commit is contained in:
Todd C. Miller
1994-05-24 20:18:10 +00:00
parent f12f25204d
commit 0745d60145

View File

@@ -79,7 +79,6 @@ static char logline[MAXLOGLEN + 8];
void log_error(code) void log_error(code)
int code; int code;
{ {
char cwd[MAXPATHLEN + 1];
int argc; int argc;
char **argv; char **argv;
mode_t oldmask; mode_t oldmask;
@@ -106,15 +105,6 @@ void log_error(code)
*/ */
p = logline + strlen(logline); 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) { switch (code) {
case ALL_SYSTEMS_GO: case ALL_SYSTEMS_GO:
@@ -439,7 +429,8 @@ static void send_mail()
* This function gets rid of all the ugly zombies * This function gets rid of all the ugly zombies
*/ */
static RETSIGTYPE reapchild() static RETSIGTYPE reapchild(sig)
int sig;
{ {
(void) wait(NULL); (void) wait(NULL);
(void) signal(SIGCHLD, reapchild); (void) signal(SIGCHLD, reapchild);