Skip to content

Commit

Permalink
write .hproc.<pid>.log in default store directory (fix #337)
Browse files Browse the repository at this point in the history
  • Loading branch information
smunix committed Mar 19, 2020
1 parent 5cc278e commit ad37c7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hobbes/ipc/prepl.C
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ void runMachineREPL(cc* c) {

// for now, create a log for all processes run in machine mode
// this will help us to diagnose errors that cause the process to die
machineREPLLogFD = open((defaultStoreDir() + "/.hproc." + str::from(getpid()) + ".log").c_str(), O_RDWR | O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH);
machineREPLLogFD = open((storage::defaultStoreDir() + "/.hproc." + str::from(getpid()) + ".log").c_str(), O_RDWR | O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH);
dbglog("Started machine-controlled process");

#ifdef BUILD_LINUX
Expand Down

0 comments on commit ad37c7d

Please sign in to comment.