Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Mon, 01 Oct 2001 19:01:23 +0200 From: Scr34m Subject: frok() To: Cygwin Reply-to: Scr34m Message-id: <541918368.20011001190123@frontember.hu> Organization: frontember.hu MIME-version: 1.0 X-Mailer: The Bat! (v1.53d) Personal Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Priority: 3 (Normal) Hi all, Here is these simple program how can i make programs to stay in background and run. Every 1 second do everything ?? Fork works in cygWin? I installed it as DOS and as Unix but doesn't work :( int main (void) { if(fork()) exit(0); else { perror("cannot fork"), exit(1); } while(1) { printf("jkk"); sleep(60); } } --- Bye Scr34m | www.inertia.hu | www.frontember.hu | eurohack.at.hu | -- 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/