Send Beginners mailing list submissions to beginners@haskell.org To subscribe or unsubscribe via the World Wide Web, visit http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners or, via email, send a message with subject or body 'help' to beginners-requ...@haskell.org
You can reach the person managing the list at beginners-ow...@haskell.org When replying, please edit your Subject line so it is more specific than "Re: Contents of Beginners digest..." Today's Topics: 1. Re: forkProcess behaviour (David McBride) ---------------------------------------------------------------------- Message: 1 Date: Tue, 17 Jul 2018 09:53:45 -0400 From: David McBride <toa...@gmail.com> To: The Haskell-Beginners Mailing List - Discussion of primarily beginner-level topics related to Haskell <beginners@haskell.org> Subject: Re: [Haskell-beginners] forkProcess behaviour Message-ID: <can+tr43z53qxqmxsjocgsneckdtexkyehpv2bbcbw5_9e3z...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" I'm not familiar with forkProcess. As for exception handling, with asynchronous exceptions, it's a pretty in depth topic and I can't say I have any mastery of it. fpcomplete did a talk recently that I suspect could answer most of your questions. https://www.youtube.com/watch?v=T5y8sFmCFnA On Tue, Jul 17, 2018 at 4:48 AM, PICCA Frederic-Emmanuel < frederic-emmanuel.pi...@synchrotron-soleil.fr> wrote: > Hello, > > I try to write a service which execute an IO using forkProcess > This service contain a web server whcih avwait for job published by users. > for each job, I create a forkProcess of this job. I need to fork the > process in order to change the uid and gid of the process for each of the > job dependencing on who request the job. > > I have a least two questions > > 1) is this forkProcess a fork of all the current process, or is it just an > executin of the IO in another process id ? > > I ask this because sometime one of my job hang and a process keep running. > Since the original process is binded to a port, it is not possible to > restart the server, saying that the port is already in use. > > 2 ) How can I catch the exceptions thrown from the child process in order > to process them in the parent process. > > thanks for your help answering these questions. > > > Frederic > _______________________________________________ > Beginners mailing list > Beginners@haskell.org > http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.haskell.org/pipermail/beginners/attachments/20180717/cb77e1cc/attachment-0001.html> ------------------------------ Subject: Digest Footer _______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners ------------------------------ End of Beginners Digest, Vol 121, Issue 16 ******************************************