Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <3C5584A4.8090904@netcom.es> Date: Mon, 28 Jan 2002 17:04:36 +0000 From: GRI Organization: GRI User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; es-ES; rv:0.9.4) Gecko/20011019 Netscape6/6.2 X-Accept-Language: es-es MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: execl problem!!! Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hi: Please look this code from a1.exe program and a2.exe program: //a1.cpp #include #include #include int main() { execl("a2.exe","",NULL); return 0; } #include #include //a2.cpp int main() { char c1; while(c1!='c') c1=getchar(); printf("%c\n",c1); } return 0; } I have a execl problem when I call a2.exe from a1.exe. I have compiled both with -mon-cygwin flag. Trapped chars by a2.exe are returned to shell . Why??? If I run this under bash or sh (or I compile without -mon-cygwin flag) this behavior does not occur. Could someone please explain me??? Thanks in advance. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/