[Home]

Summary:ASTERISK-04725: asterisk -rx not exit on linuxppc
Reporter:Marco Dal Sasso (marcods)Labels:
Date Opened:2005-07-29 03:26:35Date Closed:2005-08-22 18:32:01
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:The command asterisk -rx "....." after the output not return to the shell if running on a linuxppc system (Mac mini with Fedora Core 4 for me).

Changing the source code the main source code asterisk.c from:
-------------------------------------------------------------------------
       if (option_exec && data) {  /* hack to print output then exit if asterisk -rx is used */
               char tempchar;
               struct pollfd fds[0];<<<<<<<<--------------------
-------------------------------------------------------------------------

TO:
-------------------------------------------------------------------------
       if (option_exec && data) {  /* hack to print output then exit if asterisk -rx is used */
               char tempchar;
               struct pollfd fds[1];<<<<<<<<------------------------
-------------------------------------------------------------------------

can solve the bug.

Bye and sorry for my english
Comments:By: Kevin P. Fleming (kpfleming) 2005-08-22 18:31:51

Cannot reproduce on our Linux PPC system here running Debian. It's not a Linux PPC issue, so it must be an issue with your distro.