diff options
author | Jakob Unterwurzacher | 2022-12-29 13:52:35 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2022-12-29 13:57:03 +0100 |
commit | ff32e9979130e6237b0d97ef88304fa79ce61b06 (patch) | |
tree | b59df387878fd438d5c3429512d3e7f22966676b /internal/configfile/scrypt.go | |
parent | 7ee4c8e9c3b0fb630b48c5940a7faa220ef5e63a (diff) |
main: doMount: call Setsid before starting logger
The logger should be in the new background session together
with the gocryptfs process.
Before:
$ xfce4-terminal -x gocryptfs a b
$ ps xao pid,ppid,pgid,sid,comm,args
PID PPID PGID SID COMMAND COMMAND
192272 1371 192272 192272 gocryptfs /ssd2/jakob.donotbackup/go/bin/gocryptfs -fg -notifypid=192265 a b
192292 192272 192265 192265 logge <defunct> [logger] <defunct>
After:
$ xfce4-terminal -x gocryptfs a b
$ ps xao pid,ppid,pgid,sid,comm,args
PID PPID PGID SID COMMAND COMMAND
211714 1371 211714 211714 gocryptfs /ssd2/jakob.donotbackup/go/bin/gocryptfs -fg -notifypid=211708 a b
211776 211714 211714 211714 logger logger -t gocryptfs-211714-logger
Fixes https://github.com/rfjakob/gocryptfs/issues/660
Diffstat (limited to 'internal/configfile/scrypt.go')
0 files changed, 0 insertions, 0 deletions