nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] [PATCH] Replace fork with clone to share file descripto


From: David Ramsey
Subject: Re: [Nano-devel] [PATCH] Replace fork with clone to share file descriptors between parent and child.
Date: Thu, 16 Aug 2018 14:23:08 -0500

Chiming in for the record.

Benno Schulenberg:
> Is the clone() function POSIX?  Because it does not seem to exist
> on OpenBSD:

According to the manual page on my Slackware 14.2 (plus bits of current)
system, which has man-pages 4.06, clone() is Linux-specific.  Obviously,
as your compilation attempts show, other Unix-type systems have it, but
it doesn't sound as though it's that portable.

Also, on an unrelated note, I've noted one instance of malloc() in the
patch.  Shouldn't it be using the nmalloc() wrapper instead, as
everything else does?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]