Problem with posix-fork.

From: Harvey J. Stein <hjstein_at_MATH.HUJI.AC.IL>
Date: Sat, 28 Oct 1995 20:13:35 +0200

I can use posix-fork under 2.2, but under 3.0 it crashes. Here's an
example under 2.2:

hjstein:~/stk/www$ stk-2.2
Welcome to the STk interpreter version 2.2 [Linux-1.X-ix86]
Copyright (C) 1993,1994,1995 Erick Gallesio - I3S - CNRS / ESSI <eg_at_unice.fr>
STk> (require "posix")
"posix"
STk> (define (test)
  (let ((p (posix-fork)))
    (format #t "fork rtn: ~s\n" p)))

#[undefined]
STk> (test)
fork rtn: 198
#[undefined]
STk> fork rtn: 0
#[undefined]
STk> (exit)
hjstein:~/stk/www$


Here's version 3.0:

hjstein:~/stk/www$ stk-3.0b1
Welcome to the STk interpreter version 3.0b1 [Linux-1.X-ix86]
Copyright (C) 1993,1994,1995 Erick Gallesio - I3S - CNRS / ESSI <eg_at_unice.fr>
STk> (require "posix")
"posix"
STk> (define (test)
  (let ((p (posix-fork)))
    (format #t "fork rtn: ~s\n" p)))
#[undefined]
STk> (test)
fork rtn: 216
#[undefined]
STk> fork rtn: 0
#[undefined]
STk> Segmentation fault
hjstein:~/stk/www$ X Error of failed request: BadWindow (invalid Window parameter)
  Major opcode of failed request: 4 (X_DestroyWindow)
  Resource id in failed request: 0x2800003
  Serial number of failed request: 53
  Current serial number in output stream: 50

hjstein:~/stk/wwww$

Anyone have any idea what's going on?

Thanks,

Dr. Harvey J. Stein
Berger Financial Research
hjstein_at_math.huji.ac.il
Received on Sat Oct 28 1995 - 19:14:07 CET

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST