#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:
Aaron Cook 2023-05-08 10:00:37 -05:00
commit 1989c36886
5 changed files with 96 additions and 21 deletions

View file

@ -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");