summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-10-09 16:19:23 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-10-09 16:19:23 +0000
commitadc2254dc3c070ebd8dfae14cbdfa79a049edefc (patch)
tree1c2111e4a709ffbe6b098ad0d75747609a61645d
parentf5107dcef4d2bec10e62fc3b64b003b28456d705 (diff)
downloaddrakx-adc2254dc3c070ebd8dfae14cbdfa79a049edefc.tar
drakx-adc2254dc3c070ebd8dfae14cbdfa79a049edefc.tar.gz
drakx-adc2254dc3c070ebd8dfae14cbdfa79a049edefc.tar.bz2
drakx-adc2254dc3c070ebd8dfae14cbdfa79a049edefc.tar.xz
drakx-adc2254dc3c070ebd8dfae14cbdfa79a049edefc.zip
perform kernel logging anyway, it's cool to have it for init-stage2 as well
-rw-r--r--mdk-stage1/init.c5
1 files changed, 1 insertions, 4 deletions
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);