Commit 769551c3 authored by Ondřej Surý's avatar Ondřej Surý
Browse files

Merge branch 'dont-close-stderr-doc' into 'master'

Add notice about closing stdout/stderr file descriptors to style.md

See merge request !272
parents a02efbe1 174d00fb
Pipeline #1641 passed with stages
in 8 minutes and 7 seconds
......@@ -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, ...)`
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment