on linux, would it be safe to open /dev/null as a regular file for write only to flush stdin? or is there another way to do it?
Printable View
on linux, would it be safe to open /dev/null as a regular file for write only to flush stdin? or is there another way to do it?
thanks.