This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
frok()
- To: cygwin at cygwin dot com
- Subject: frok()
- From: Markus Hoenicka <Markus dot Hoenicka at uth dot tmc dot edu>
- Date: Mon, 1 Oct 2001 17:59:38 +0000
- References: <541918368.20011001190123@frontember.hu>
man fork
will enlighten you
Markus
Scr34m writes:
> 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/
>
--
Markus Hoenicka, PhD
UT Houston Medical School
Dept. of Integrative Biology and Pharmacology
6431 Fannin MSB4.114
Houston, TX 77030
(713) 500-6313, -7477
(713) 500-7444 (fax)
Markus.Hoenicka@uth.tmc.edu
http://ourworld.compuserve.com/homepages/hoenicka_markus/
--
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/