The daemon now runs on top of our kernel, so it should now write to

the real syslog.
Also, find_directory() now makes sure that the path to the syslog
actually exists.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10797 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2005-01-17 14:49:14 +00:00
parent 8118b7593e
commit 9f8a0739b6
1 changed files with 2 additions and 3 deletions

View File

@ -57,10 +57,9 @@ prepare_output()
if (sLog >= 0)
close(sLog);
// get path
// get path (and create it if necessary)
BPath base;
find_directory(/*B_COMMON_LOG_DIRECTORY*/B_COMMON_TEMP_DIRECTORY, &base);
// ToDo: change to correct "which" parameter!
find_directory(B_COMMON_LOG_DIRECTORY, &base, true);
BPath syslog(base);
syslog.Append("syslog");