e-
> From: Matthew Flatt [mailto:mfl...@cs.utah.edu]
> Sent: 19 March 2011 23:43
> To: Jukka Tuominen
> Cc: users@racket-lang.org
> Subject: Re: [racket] racket and OS threads
>
>
> That works for me in Mac OS X. For Linux, though, I have to enable
> subprocess groups
(custodian-shutdown-all cust)
>(display "end")(newline)
>(sleep 10)
>(loop)
>)))
>
> br, jukka
>
> >
> >
> > > -----Original Message-
> > > From: Matthew Flatt [mailto:mfl...@cs.utah.edu]
> > >
uot;)(newline)
(sleep 10)
(loop)
)))
br, jukka
>
>
> > -Original Message-
> > From: Matthew Flatt [mailto:mfl...@cs.utah.edu]
> > Sent: 18 March 2011 15:24
> > To: Jukka Tuominen
> > Cc: users@racket-lang.org
> > Subject: Re: [rac
just learn use custodians properly... :)
br, jukka
> -Original Message-
> From: Matthew Flatt [mailto:mfl...@cs.utah.edu]
> Sent: 18 March 2011 15:24
> To: Jukka Tuominen
> Cc: users@racket-lang.org
> Subject: Re: [racket] racket and OS threads
>
>
> Oh, you need
m I missing here...?
>
> br, jukka
>
>
>
> > -Original Message-
> > From: Matthew Flatt [mailto:mfl...@cs.utah.edu]
> > Sent: 18 March 2011 15:02
> > To: Jukka Tuominen
> > Cc: users@racket-lang.org
> > Subject: Re: [racket] racket and OS t
; -Original Message-
> From: Matthew Flatt [mailto:mfl...@cs.utah.edu]
> Sent: 18 March 2011 15:02
> To: Jukka Tuominen
> Cc: users@racket-lang.org
> Subject: Re: [racket] racket and OS threads
>
>
> At Fri, 18 Mar 2011 14:57:34 +0200, "Jukka Tuominen" wrote:
&
At Fri, 18 Mar 2011 14:57:34 +0200, "Jukka Tuominen" wrote:
> now the problem moved to converting the simple "system" procedure to
> not-so-simple "subprocess" procedure.
To use `current-subprocess-custodian-mode'? The parameter applies to
`system', too.
_
something to kill? :)
br, jukka
> -Original Message-
> From: Matthew Flatt [mailto:mfl...@cs.utah.edu]
> Sent: 18 March 2011 13:53
> To: Jukka Tuominen
> Cc: users@racket-lang.org
> Subject: Re: [racket] racket and OS threads
>
>
> At Fri, 18 Mar 2011 13:40:02 +
At Fri, 18 Mar 2011 13:40:02 +0200, "Jukka Tuominen" wrote:
> (define loop
> (lambda ()
>(set! thread:child (thread (lambda () (system "gracket -f
> \""...rlt\""
>(sleep 30)
>(kill-thread thread:child)
>(loop)))
>
>
> But, eventhough the racket process ends a
Hi,
I'm trying to build a sandbox (in Linux) so that a custodian process creates
a child gracket&OS thread. If the child thread should misbehave, the
custodian process ends it and starts a new child thread.
Below is a simplified version of what I have tried
(define thread:child 0)
(define loop
10 matches
Mail list logo