diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/chroot-tools/distcc-tool | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/chroot-tools/distcc-tool b/src/chroot-tools/distcc-tool index 4c6ef3f..4e2359f 100755 --- a/src/chroot-tools/distcc-tool +++ b/src/chroot-tools/distcc-tool @@ -218,9 +218,10 @@ odaemon() { [[ $# -eq 1 ]] || panic local chrootpath=$1 + cd "$chrootpath" umask 111 - socat UNIX-LISTEN:"$chrootpath/socket",fork SYSTEM:"${0@Q} server" & - trap "jobs -p | xargs -r kill --; rm -f -- ${chrootpath@Q}/socket" EXIT + socat UNIX-LISTEN:"./socket",fork SYSTEM:"${0@Q} server" & + trap "jobs -p | xargs -r kill --; rm -f -- ./socket" EXIT wait } |