From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25099 invoked by alias); 12 Nov 2002 19:25:06 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 24982 invoked from network); 12 Nov 2002 19:24:18 -0000 Received: from unknown (HELO globalsis1.globalsis.com.ar) (200.42.40.154) by sources.redhat.com with SMTP; 12 Nov 2002 19:24:18 -0000 Received: from globalsis.com.ar ([192.168.0.5]) by globalsis1.globalsis.com.ar with Microsoft SMTPSVC(5.0.2195.5329); Tue, 12 Nov 2002 16:24:25 -0300 Message-ID: <3DD15569.70400@globalsis.com.ar> Date: Tue, 12 Nov 2002 11:53:00 -0000 From: Ivan Hernandez User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.3) Gecko/20010801 X-Accept-Language: en-us MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Hello. References: <1037128474.22564.ezmlm@cygwin.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 12 Nov 2002 19:24:25.0740 (UTC) FILETIME=[1CBDA4C0:01C28A81] X-SW-Source: 2002-11/txt/msg00605.txt.bz2 Hello. This is my first mail to the list. I have this problem... y have downloaded the Redir v.2.1 program source code as it's is on the Debian GNU/Linux stable release and it compiles OK and works perfect. I run something like... ivan.hernandez@IHERNANDEZ ~/redir-2.1 $ make gcc -O2 -Wall -c -o redir.o redir.c gcc -s -o redir redir.o all ok. then... ivan.hernandez@IHERNANDEZ ~/redir-2.1 $ ./redir.exe --lport=1000 --laddr=192.168.0.5 --cport=1000 --caddr=192.168.0.30 & [1] 2092 and fine... it really works. but when i close my terminal the program does not remain on background as /usr/sbin/sshd does. I want my program to do as sshd.exe i tried adding a fork() at the main() routine but i have 2 process that are killed when i close my terminal. Ideas? I don't want a service. I want it working like a daemon just as sshd does. Thanks you so much! Ivan Hernandez -- 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/