Skip to content

Commit d4a344e

Browse files
committed
Disable lsof warnings.
Typically `lsof` prints a lot of warnings similar to ``` lsof: WARNING: can't opendir(/home/sitowert/domjudge/output/judgings/goo-0/endpoint-default/executable/run/4/b5ea8d9ef4caee54508d7571c8206757/proc/21/ns): Permission denied ``` These warnings are not really interesting in debugging of the umounting problem and the actual interesting lines were drowned in warning spam.
1 parent 55427fc commit d4a344e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

judge/chroot-startstop.sh.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ dj_umount() {
4444
>&2 echo "umount '$1' didn't succeed, trying harder"
4545
if ! sudo -n umount -f -vvv "$1" < /dev/null; then
4646
>&2 echo "umount '$1' failed twice"
47-
>&2 lsof +c 15 +D "$1"
47+
>&2 lsof -w +c 15 +D "$1"
4848
exit 1
4949
fi
5050
fi

0 commit comments

Comments
 (0)