Re: close-exec flag not working in 2.6.9?

From: Ulrich Drepper
Date: Mon Jan 31 2005 - 16:17:12 EST


On Sun, 30 Jan 2005 23:56:07 -0800, Ben Greear <greearb@xxxxxxxxxxxxxxx> wrote:
> flags = fcntl(s, F_GETFL);
> flags |= (FD_CLOEXEC);
> if (fcntl(s, F_SETFL, flags) < 0) {

These have to be F_GETFD and F_SETFD respectively. Note L -> D.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/