"Fork" in Windows

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • anders

    #1

    "Fork" in Windows

    Hi!

    I have a problem converting a cgi-program to run on windows.

    The problem is that the CGI is collecting a lot of information
    (a orderhandlingsy stem) and under unix the main process
    makes a FORK and the new childprocess is continue
    process the order (copying, make PDF etc. with is time
    consuming)

    The main process is exiting after childprocess is creating
    and lett the webbserver continue.

    Så in a short form

    MAIN
    1. Collect data
    2. Fork to childprocess
    3. exit main process


    CHILD
    1. make PDF, .....
    2. Send confirmmail
    3. Make bakups and cleaning
    4. Exit

    BUT... I have not found any way on doing this i Windows with C
    I have found spawn and CreateCildProce ss but thay will have a program
    as indata
    and i would like to CLONE current process.

    Any one know how to do this (i am using Microsoft Compiler that came
    with VisualStudio 6 eg. NOT .NET version.

    Tanks
    Anders

  • Ian Collins

    #2
    Re: "Fork&quot ; in Windows

    anders wrote:
    Hi!
    >
    I have a problem converting a cgi-program to run on windows.
    >
    Then you'll be better off asking on a windows programming group.

    --
    Ian Collins.

    Comment

    • Tobias Rischer

      #3
      Re: "Fork&quot ; in Windows

      Ian Collins wrote:
      anders wrote:
      >Hi!
      >>
      >I have a problem converting a cgi-program to run on windows.
      >>
      Then you'll be better off asking on a windows programming group.
      >
      But anyway, maybe shared memory or pipes can help you along?

      Comment

      • CBFalconer

        #4
        Re: "Fork&quot ; in Windows

        anders wrote:
        >
        I have a problem converting a cgi-program to run on windows.
        >
        The problem is that the CGI is collecting a lot of information
        (a orderhandlingsy stem) and under unix the main process
        makes a FORK and the new childprocess is continue
        process the order (copying, make PDF etc. with is time
        consuming)
        Converting things to Winders is a retrograde step. None of this
        has anything to do with the C language. You probably want a group
        with Microsoft or Windoze in its name. See the following links:

        --
        Some useful references about C:
        <http://www.ungerhu.com/jxh/clc.welcome.txt >
        <http://www.eskimo.com/~scs/C-faq/top.html (C-faq)
        <http://benpfaff.org/writings/clc/off-topic.html>
        <http://anubis.dkuug.dk/jtc1/sc22/wg14/www/docs/n869/(C99)
        <http://www.dinkumware. com/refxc.html (C-library}
        <http://gcc.gnu.org/onlinedocs/ (GNU docs)
        <http://clc-wiki.net/wiki/C_community:com p.lang.c:Introd uction>


        --
        Posted via a free Usenet account from http://www.teranews.com

        Comment

        Working...