Commit d38c24a
committed
libinitramfs/logging: Do not reassign stderr
Reassigning stdin, stdout,stderr is not a portable solution. The
standard streams can be made to refer to different files with help of
the library function freopen(3), specially introduced to make it
possible to reassign stdin, stdout, and stderr.
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>1 parent a6060e5 commit d38c24a
1 file changed
+2
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
| 146 | + | |
| 147 | + | |
152 | 148 | | |
0 commit comments