From adc2254dc3c070ebd8dfae14cbdfa79a049edefc Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Thu, 9 Oct 2003 16:19:23 +0000 Subject: perform kernel logging anyway, it's cool to have it for init-stage2 as well --- mdk-stage1/init.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'mdk-stage1') diff --git a/mdk-stage1/init.c b/mdk-stage1/init.c index 078bb4ef0..493f395b8 100644 --- a/mdk-stage1/init.c +++ b/mdk-stage1/init.c @@ -108,7 +108,6 @@ void print_str_init(int fd, char * string) */ void doklog() { -#ifdef DO_KLOG fd_set readset, unixs; int in, out, i; int log; @@ -125,6 +124,7 @@ void doklog() return; } + mkdir("/tmp", 0755); if ((log = open("/tmp/syslog", O_WRONLY | O_CREAT, 0644)) < 0) { print_error("error opening /tmp/syslog"); sleep(5); @@ -232,7 +232,6 @@ void doklog() FD_SET(readfd, &unixs); } } -#endif } @@ -440,9 +439,7 @@ int main(int argc __attribute__ ((unused)), char **argv __attribute__ ((unused)) sync(); sync(); -#ifndef DO_KLOG while (1); -#endif printf("sending termination signals..."); kill(-1, 15); -- cgit v1.2.1