[Top][All Lists]

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

Re: [Jailkit-users] jk_chrootlaunch and STDERR

From: Olivier Sessink
Subject: Re: [Jailkit-users] jk_chrootlaunch and STDERR
Date: Sun, 20 Sep 2009 22:54:59 +0200
User-agent: Thunderbird (X11/20090817)

Andrei Sereda wrote:
> Hello everybody,
> I'm trying to chroot a java process and having some troubles. Will be
> glad if you can help me.
> Basically it drills down to having a process output information to
> STDERR. I've done a simple script print-echo:

> see jk_chrootlaunch.c source:
> /* open file descriptors can be used to break out of a chroot, so we
> close all of them, except for stdin,stdout and stderr */
> while (i-- > 2) {
>       while (close(i) != 0 && errno == EINTR);
>  }

you're correct, the loop is incorrect, it closes i=2 which is stderr.

fixed in cvs

thanks for reporting


reply via email to

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