John Goerzen wrote:
> I wonder what the behavior of fwrite() in this situation is. I don't
> know if it ever performs buffering such that write() is never called
> during a call to fwrite().
fwrite() is no different to other stdio functions in this regard. If
the stream is buffered, a call to f
On Wed, Oct 27, 2004 at 11:30:12AM +0100, Simon Marlow wrote:
> The System.Posix library is severely lacking in documentation. Ideally
> for each function it would list the POSIX equivalent, and a table with
> the mapping in the other direction would be useful too.
One idea on this topic: Many P
John Goerzen <[EMAIL PROTECTED]> writes:
> I wonder what the behavior of fwrite() in this situation is. I don't
> know if it ever performs buffering such that write() is never called
> during a call to fwrite().
On Linux it duplicates unflushed output (hmm, I thought they fixed
this a few years
On 2004-10-27, Glynn Clements <[EMAIL PROTECTED]> wrote:
> One major issue is the way in which fork() has global consequences.
>
> E.g. if a library has file descriptors for internal use, fork() will
> duplicate them. If the library subsequently closes its copy of the
> descriptor, but the inherite
Simon Marlow wrote:
> > Yes. Its POSIX interface is, uhm, weird. I can't quite put my finger
> > on it, but things like setting up a pipe to a child process's stdin
> > just seem brittle and fragile with all sorts of weird errors. I can
> > do this in my sleep in C, Perl, or Python but in Hask
On 27 October 2004 02:03, John Goerzen wrote:
> On 2004-10-26, Peter Simons <[EMAIL PROTECTED]> wrote:
>> By the way: It's good to know I'm not the only one wrestling
>> with Haskell's concurrency code. :-)
>
> Yes. Its POSIX interface is, uhm, weird. I can't quite put my finger
> on it, but th
On 27 October 2004 10:13, Glynn Clements wrote:
> John Goerzen wrote:
>
>> Oh also, I would very much appreciate Haskell interfaces to
>> realpath() and readlink().
>
> I don't know about realpath() (which is a BSD-ism, and included in GNU
> libc, but I'm not sure about other Unices), but readli
John Goerzen wrote:
> Oh also, I would very much appreciate Haskell interfaces to realpath()
> and readlink().
I don't know about realpath() (which is a BSD-ism, and included in GNU
libc, but I'm not sure about other Unices), but readlink() exists as
System.Posix.readSymbolicLink.
--
Glynn Cle
On Wed, Oct 27, 2004 at 12:56:12AM +, John Goerzen wrote:
> If you follow this a little bit, you'll find that forkProcess is *NOT*
> throwing the exception that is being reported here. The message is
> being printed by the RTS of the child process. No exception is thrown
> in the parent. (Be
On 2004-10-26, Peter Simons <[EMAIL PROTECTED]> wrote:
> John Goerzen writes:
>
> > (progname): forkProcess: uncaught exception
>
> Quoting from the documentation:
>
> forkProcess :: IO () -> IO ProcessID
>
> [...] On success, forkProcess returns the child's
> ProcessID to the parent process;
On 2004-10-26, Peter Simons <[EMAIL PROTECTED]> wrote:
> just to avoid any possible confusion: I emailed my reply to
> you and posted it to the list as well, but unfortunately I
> hit the wrong button so that my mail to you doesn't _say_
> that it is a carbon copy. Sorry about the mess.
OK, thanks
John,
just to avoid any possible confusion: I emailed my reply to
you and posted it to the list as well, but unfortunately I
hit the wrong button so that my mail to you doesn't _say_
that it is a carbon copy. Sorry about the mess.
By the way: It's good to know I'm not the only one wrestling
with
John Goerzen writes:
> (progname): forkProcess: uncaught exception
Quoting from the documentation:
forkProcess :: IO () -> IO ProcessID
[...] On success, forkProcess returns the child's
ProcessID to the parent process; in case of an error, an
exception is thrown.
What I assume is happ
13 matches
Mail list logo