public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Suhaib M. Siddiqi" <Ssiddiqi@InspirePharm.Com>
To: "Mumit Khan" <khan@xraylith.wisc.edu>, "Dave Love" <d.love@dl.ac.uk>
Cc: <ssiddiqi@ipass.net>, <gnu-win32@cygnus.com>, <egcs-bugs@cygnus.com>
Subject: Re: G77 fork problems
Date: Sun, 31 Jan 1999 23:52:00 -0000	[thread overview]
Message-ID: <004101be43b3$ae3c58b0$29acdfd0@InspirePharm.Com> (raw)

Dave,
thanks for your help.

Mumits suggestion actually worked for me.  What I have is a very simple
FORK call in FORTRAN. Since SGI F77 supports it directly, without
writing a wraper, I assumed the G77 would too. It was my wrong
assumption.  Actually G77 way of handeling FORK makes more sense to
me -- personally.

Regards
Suhaib

--

      INTEGER FORK,IRTN,ISTATE
C**
C**   WE START BY FORKING TO MAKE A PARENT AND A CHILD PROCESS.
C**

      IRTN=FORK()
C**
C**   NOW IRTN WILL BE NEGATIVE IF AN ERROR HAS OCCURRED.   IT WILL BE
C**   ZERO FOR THE CHILD PROCESS, AND WILL HAVE THE (POSITIVE) PROCESS
C**   IDENTIFICATION NUMBER (PID) FOR THE PARENT PROCESS.
C**
      IF (IRTN.LT.0) GO TO 100
      IF (IRTN.EQ.0) GO TO 1000
C**
C**   HERE WE KILL OFF THE PARENT.   ON SILICON GRAPHICS SYSTEMS
C**   RUNNING FORTRAN WE CALL EXIT LIKE A SUBROUTINE.   WHEN THE
C**   PARENT HAS DIED, THE SYSTEM PROMPT SHOULD RETURN.
C**
      CALL EXIT(ISTATE)
      STOP
C**
  100 WRITE (IPDB,116)
  116 FORMAT (/,/,
     +'  (P116-E)  PROBLEM FORKING ON THIS UNIX SYSTEM.',/,
     +'            CHECK SUBROUTINE: GFORK IN FILE GRIDU.F',/)
      STOP
C**
 1000 CONTINUE
C**
C**   HERE WE LET THE CHILD GO ON RUNNING IN THE BACKGROUND.
C**
      RETURN
C**
      END
----
*************************************************
Suhaib M. Siddiqi, Ph.D.
Senior Research Chemist
Inspire Pharmaceuticals, Inc.
4222 Emperor Blvd., Suite 470
Durham, NC 27703-8466

Tel: 919-941-9777 Ext. 238
Fax: 919-941-9797
E-Mail: Ssiddiqi@inspirepharm.com
http://www.inspirepharm.com

============================




----- Original Message -----
From: Dave Love <d.love@dl.ac.uk>
To: Mumit Khan <khan@xraylith.wisc.edu>
Cc: <ssiddiqi@ipass.net>; <gnu-win32@cygnus.com>; <egcs-bugs@cygnus.com>
Sent: Tuesday, January 19, 1999 8:45 AM
Subject: Re: G77 fork problems


>>>>>> "MK" == Mumit Khan <khan@xraylith.wisc.edu> writes:
>
> MK> Here's a start. Note that it's completely untested -- the
> MK> includes I've used (eg., unistd.h) may not even exist on your
> MK> system, pid_t may not be the same as g77 "integer" type, etc etc.
>
>If you want to do that I think you have at least to worry about the
>i/o state and it's not clear what good it is in the absence of a
>corresponding exec, for which there isn't an obvious implementation.
>

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

             reply	other threads:[~1999-01-31 23:52 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-01-31 23:52 Suhaib M. Siddiqi [this message]
1999-01-31 23:52 ` Craig Burley
  -- strict thread matches above, loose matches on Subject: below --
1999-01-31 23:52 Suhaib M. Siddiqi
1999-01-31 23:52 Suhaib M. Siddiqi
1999-01-31 23:52 ` Craig Burley
1999-01-31 23:52 Suhaib M. Siddiqi
1999-01-31 23:52 ` Mumit Khan
1999-01-31 23:52 Suhaib M. Siddiqi
1999-01-31 23:52 ` Craig Burley
1999-01-31 23:52 Suhaib M. Siddiqi
1999-01-31 23:52 ` Stephane Cateland
1999-01-31 23:52 ` Dave Love
1999-01-31 23:52 ` Mumit Khan
1999-01-31 23:52   ` Dave Love

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='004101be43b3$ae3c58b0$29acdfd0@InspirePharm.Com' \
    --to=ssiddiqi@inspirepharm.com \
    --cc=d.love@dl.ac.uk \
    --cc=egcs-bugs@cygnus.com \
    --cc=gnu-win32@cygnus.com \
    --cc=khan@xraylith.wisc.edu \
    --cc=ssiddiqi@ipass.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).