Re: [racket] racket and OS threads

2011-03-19 Thread Jukka Tuominen
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

Re: [racket] racket and OS threads

2011-03-19 Thread Matthew Flatt
(custodian-shutdown-all cust) >(display "end")(newline) >(sleep 10) >(loop) >))) > > br, jukka > > > > > > > > -----Original Message- > > > From: Matthew Flatt [mailto:mfl...@cs.utah.edu] > > >

Re: [racket] racket and OS threads

2011-03-19 Thread Jukka Tuominen
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

Re: [racket] racket and OS threads

2011-03-18 Thread Jukka Tuominen
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

Re: [racket] racket and OS threads

2011-03-18 Thread Matthew Flatt
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

Re: [racket] racket and OS threads

2011-03-18 Thread Jukka Tuominen
; -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: &

Re: [racket] racket and OS threads

2011-03-18 Thread Matthew Flatt
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. _

Re: [racket] racket and OS threads

2011-03-18 Thread Jukka Tuominen
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 +

Re: [racket] racket and OS threads

2011-03-18 Thread Matthew Flatt
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

[racket] racket and OS threads

2011-03-18 Thread Jukka Tuominen
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