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)
|
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);
|
||||||
|
Reference in New Issue
Block a user