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 Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <3DD15569.70400@globalsis.com.ar> Date: Tue, 12 Nov 2002 16:24:25 -0300 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 AT cygwin DOT com Subject: Hello. References: <1037128474 DOT 22564 DOT ezmlm AT cygwin DOT 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] 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 DOT hernandez AT IHERNANDEZ ~/redir-2.1 $ make gcc -O2 -Wall -c -o redir.o redir.c gcc -s -o redir redir.o all ok. then... ivan DOT hernandez AT 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/