I compiled gsoap with -DSOAP_DEBUG in Linux. When I start up my daemon it does a chdir to /var/core/. I see gsoap debug logs (SENT.log, RECV.log and TEST.log) in that directory, but I also see them in $HOME. Both sets of logs are being updated even though there is only one process running (I checked to make sure no duplicate).
Why does gsoap dump debug log messages in two different directories? I started my daemon in /var/core/, and it does a chdir to that directory just in case. I did not expect to find any logs in $HOME. -rw-r--r-- 1 root root 6125 Apr 14 13:05 /var/core/RECV.log -rw-r--r-- 1 root root 3048114 Apr 14 13:05 /var/core/SENT.log -rw-r--r-- 1 root root 21259620 Apr 14 13:05 /var/core/TEST.log -rw-r--r-- 1 root root 19196 Apr 14 13:05 /root/RECV.log -rw-r--r-- 1 root root 18700 Apr 14 13:05 /root/SENT.log -rw-r--r-- 1 root root 148112 Apr 14 13:05 /root/TEST.log I even tried lsof and fuser to verify if there was more than one process writing to the different directories. I could only find one process. Makes no sense.
