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

Jean-Noël Quintin commented on THRIFT-4267:
-------------------------------------------

the functions could be called with atexit._run_exitfuncs()

> Python Forked process exit without calling atexit functions
> -----------------------------------------------------------
>
>                 Key: THRIFT-4267
>                 URL: https://issues.apache.org/jira/browse/THRIFT-4267
>             Project: Thrift
>          Issue Type: Bug
>          Components: Python - Library
>            Reporter: Jean-Noël Quintin
>            Priority: Minor
>
> I am logging with an asynchronous library that required to call a flush 
> function at exit to avoid loosing messages.
> Since in the library after a fork os._exit is called I have no way to call 
> this function automatically.
> Is it possible to call sys.exit or the function register in atexit?



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to