#10 Process specific backup log files
A process will open outbuf/inbuf.pid.log and move it to the outbuf/inbuf.log upon close, allowing for multiple processes to be open at once
This commit is contained in:
parent
40adb336fb
commit
1989c36886
5 changed files with 96 additions and 21 deletions
|
|
@ -414,10 +414,14 @@ read_state()
|
|||
{
|
||||
struct stat st;
|
||||
char *buf;
|
||||
char *cwd = getcwd(NULL, 0);
|
||||
char *cwd;
|
||||
char *home = getenv("HOME");
|
||||
FILE *fd;
|
||||
|
||||
if (!home)
|
||||
return 0;
|
||||
|
||||
cwd = getcwd(NULL, 0);
|
||||
chdir(home);
|
||||
|
||||
fd = fopen(".config/bytenuts/inbuf.log", "r");
|
||||
|
|
|
|||
Loading…
Reference in a new issue