Send Beginners mailing list submissions to
[email protected]
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
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."
Today's Topics:
1. forkProcess behaviour (PICCA Frederic-Emmanuel)
----------------------------------------------------------------------
Message: 1
Date: Tue, 17 Jul 2018 08:48:33 +0000
From: PICCA Frederic-Emmanuel
<[email protected]>
To: "The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell" <[email protected]>
Subject: [Haskell-beginners] forkProcess behaviour
Message-ID:
<a2a20ec3b8560d408356cac2fc148e530107e2a...@sun-dag4.synchrotron-soleil.fr>
Content-Type: text/plain; charset="us-ascii"
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
------------------------------
Subject: Digest Footer
_______________________________________________
Beginners mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
------------------------------
End of Beginners Digest, Vol 121, Issue 15
******************************************