moved cwd into load_globals
This commit is contained in:
13
logging.c
13
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);
|
||||
|
Reference in New Issue
Block a user