mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-08 23:32:05 -04:00
Merge branch 'dont-close-stderr-doc' into 'master'
Add notice about closing stdout/stderr file descriptors to style.md See merge request isc-projects/bind9!272
This commit is contained in:
commit
769551c336
1 changed files with 3 additions and 1 deletions
|
|
@ -761,4 +761,6 @@ Bash should be avoided. Some pitfalls to avoid:
|
|||
statement, or use `"cat << EOF"`.
|
||||
* To set a variable from outside awk, use `"awk '{...}' var=value"` rather
|
||||
than `"awk -vvar=value '{...}'"`
|
||||
|
||||
* Don't close stdout/stderr descriptors (`>&-`), but redirect them to /dev/null
|
||||
instead (`>/dev/null`) as the closed descriptor might get reused leading to
|
||||
unpredictable behaviour when using `fprintf(stderr, ...)`
|
||||
|
|
|
|||
Loading…
Reference in a new issue