Re: [Zope-dev] Starting a new process

2001-03-19 Thread Chris McDonough

I wonder if you can kick off another thread?

- Original Message -
From: "Christian Ellguth" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 19, 2001 1:52 PM
Subject: [Zope-dev] Starting a new process


 Hi,

 I have a lengthy operation in an external method.
 I takes up to 2 minutes.
 How do I prevent the browser from timing out?
 At the moment I am creating a new process by calling "os.fork()"
 and have that operation done in that new process.
 At the end I call "sys.exit(0)". This worked fine with Zope 2.2.4,
 but Zope 2.3 gives me an error message when calling sys.exit .
 But sys.exit is the only way to end the child-process.

 Can anybody tell me what's the best way to handle a lengthy operation in
an
 external method?

 Thanks

 Christian

 
 Christian Ellguth
 Rebenring 64
 App. 04-05-22
 38106 Braunschweig
 Tel.: 05 31 - 3 88 40 78
 Mobil: 01 77 - 2 39 20 52
 e-mail: [EMAIL PROTECTED]
 ICQ#: 41965033


 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Starting a new process

2001-03-19 Thread Christian Ellguth

Hi,

I have a lengthy operation in an external method.
I takes up to 2 minutes.
How do I prevent the browser from timing out?
At the moment I am creating a new process by calling "os.fork()"
and have that operation done in that new process.
At the end I call "sys.exit(0)". This worked fine with Zope 2.2.4,
but Zope 2.3 gives me an error message when calling sys.exit .
But sys.exit is the only way to end the child-process.

Can anybody tell me what's the best way to handle a lengthy operation in an
external method?

Thanks

Christian


Christian Ellguth
Rebenring 64
App. 04-05-22
38106 Braunschweig
Tel.: 05 31 - 3 88 40 78
Mobil: 01 77 - 2 39 20 52
e-mail: [EMAIL PROTECTED]
ICQ#: 41965033


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )