[Rpm-maint] [PATCH 06/19] Add rpmpoltrans struct and helper functions
James Antill
james at fedoraproject.org
Fri Feb 5 17:26:05 UTC 2010
On Tue, 2010-02-02 at 15:25 -0500, Steve Lawrence wrote:
> + case 0:
> + if (!rpmIsDebug()) {
> + freopen("/dev/null", "r", stdin);
> + freopen("/dev/null", "w", stdout);
> + freopen("/dev/null", "w", stderr);
> + }
> + execv(pt->semodulepath, pt->semodargs);
Are you sure this is the same as the std. dup2() code? AFAICS freopen()
does not guarantee to do that.
More information about the Rpm-maint
mailing list