axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Mantaut (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AXIS2C-1655) Client library closes stderr on axutil_env_free()
Date Fri, 03 Jan 2014 18:35:51 GMT

    [ https://issues.apache.org/jira/browse/AXIS2C-1655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13861753#comment-13861753
] 

Alex Mantaut commented on AXIS2C-1655:
--------------------------------------

Hi Jake, 

Thanks for your description of the bug, I took the second aproach. Fixed in r1555188. Please
check it and close the issue.

> Client library closes stderr on axutil_env_free()
> -------------------------------------------------
>
>                 Key: AXIS2C-1655
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1655
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: core/clientapi
>    Affects Versions: 1.6.0
>            Reporter: Jake Scott
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> The client API defaults to using stderr when the specified log file cannot be opened.
 The axutil_log_impl_free() function blindly closes the log stream without checking whether
it had opened the stream or not.  This results in stderr being closed in certain conditions.
> This is effecting a custom Apache module;  when Apache runs daemonized, it switches its
working directory to the root.  This causes the Axis2 log file open to fail and use stderr
instead.  When the module is done with the Axis2 environment, it frees it - and at that time,
Apache's stderr is closed.  From then on, accept() returns fd2 and so the network ends up
getting spammed with Apache log messages.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


Mime
View raw message