I read in different sources that a common thing to do for a process that would become a daemon is to redirect STDIN, STDOUT, STDERR to /dev/null in order to prevent the daemon from spamming the console, which makes perfect sense.
I was curious why redirect them to null, when you could just close them. Any reason for this?
Thanks!