Commit 8c13385
Fix Issue "OSError: Too Many Open Files (#1072)" (#1118)
Close the file descriptor "self.oldstdout_fno" after line 24, since it is no more used. Leaving it opened will cause the Too Many Open Files error when the _enter_ function is called many times.1 parent 42e466f commit 8c13385
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
0 commit comments