[asterisk-bugs] [JIRA] (ASTERISK-22557) why doesn't use waitpid into all src instead of sometimes wait4

ygcheny (JIRA) noreply at issues.asterisk.org
Fri Sep 27 00:19:03 CDT 2013


    [ https://issues.asterisk.org/jira/browse/ASTERISK-22557?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=210625#comment-210625 ] 

ygcheny commented on ASTERISK-22557:
------------------------------------

I already signed your license and uploaded my patch.
If you look at the difference between a waitpid and wait4, you will understand my point.
It is not a question of stability and/or bug fixes. 
There is just no point in using a wait4 if you do not read the struct return (rusage).
Especially as wait4 is not present in all platform lib C.

best regards.
                
> why doesn't use waitpid into all src instead of sometimes wait4
> ---------------------------------------------------------------
>
>                 Key: ASTERISK-22557
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-22557
>             Project: Asterisk
>          Issue Type: Improvement
>      Security Level: None
>          Components: Applications/app_dahdiras, Applications/General, Utilities/General
>    Affects Versions: SVN, 1.8.23.1, 11.5.1
>         Environment: test into gnu/linux
>            Reporter: YvesGael
>            Assignee: YvesGael
>            Severity: Trivial
>         Attachments: asterisk-11.5.1-wait4.patch
>
>
> Into some src, you use wait4 but you never read or use rusage, into others src, you use waitpid.
> It could be great to use waitpid into all src.
> i join a patch tested into linux.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list