Mercurial > hgrepos > hgweb.cgi > s4
comparison s4-funcs.sh @ 1030:0dfef6d195fa draft
Fix chmod timing for error.out
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Tue, 26 Dec 2023 08:29:18 +0900 |
parents | 6e24f1ecf13e |
children | 9d62cba7344f |
comparison
equal
deleted
inserted
replaced
1029:8c7d168d27ed | 1030:0dfef6d195fa |
---|---|
423 mkfifo $sqi $sqo | 423 mkfifo $sqi $sqo |
424 #tail -f $sqi | sq $db & # "tail -f" is too heavy. DO NOT USE!! | 424 #tail -f $sqi | sq $db & # "tail -f" is too heavy. DO NOT USE!! |
425 sq $db < $sqi & | 425 sq $db < $sqi & |
426 sq3pid="`jobs -p` $!" | 426 sq3pid="`jobs -p` $!" |
427 if $isCGI; then | 427 if $isCGI; then |
428 exec 2>> $logdir/error.out | 428 exec 2>> $logdir/error.out |
429 chmod o-r $logdir/error.out | |
429 fi | 430 fi |
430 exec 5> $sqi # Turning $sqi access through fd5 for continuous open state | 431 exec 5> $sqi # Turning $sqi access through fd5 for continuous open state |
431 chmod o-r $logdir/error.out $logdir/debug.out | 432 chmod o-r $logdir/debug.out |
432 rm $sqi | 433 rm $sqi |
433 # Attach supplemental DB | 434 # Attach supplemental DB |
434 cat >&5 <<-EOF | 435 cat >&5 <<-EOF |
435 .output /dev/null | 436 .output /dev/null |
436 ATTACH DATABASE "$sessdb" AS tmp; | 437 ATTACH DATABASE "$sessdb" AS tmp; |