By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,116 Members | 1,244 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,116 IT Pros & Developers. It's quick & easy.

"Fork" in Windows

P: n/a
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 orderhandlingsystem) 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 CreateCildProcess 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

Mar 19 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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.
Mar 19 '07 #2

P: n/a
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?
Mar 19 '07 #3

P: n/a
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 orderhandlingsystem) 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:comp.lang.c:Introduction>
--
Posted via a free Usenet account from http://www.teranews.com

Mar 20 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.