[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[rhel6-branch] check if stdout and stderr are the same strings in execWithRedirect (#750710)



As commented in the bug (https://bugzilla.redhat.com/show_bug.cgi?id=750710):
We have to check if stdout and stderr are the same in execWithRedirect() because if they are the same we
should open the file only once and have the same file descriptor for both stdout and stderr. Opening the file
twice (thus having two file descriptors) causes rewrites and inconsistency in the file.

--
Vratislav Podzimek


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]