> On Sept. 22, 2015, 6:55 p.m., Cong Wang wrote:
> > 3rdparty/libprocess/3rdparty/stout/include/stout/os/linux.hpp, line 52
> > <https://reviews.apache.org/r/38639/diff/1/?file=1081455#file1081455line52>
> >
> >     s/namespaces/flags/, because SIG* can be or'ed with namespaces. Or even 
> > better, pass namespaces separately with signals as two different parameters?
> 
> haosdent huang wrote:
>     Because I see ::clone only have one param, I just change 
> s/namespaces/flags/ here.
> 
> Cong Wang wrote:
>     I meant:
>     
>     clone(...int flags, int signal)
>     {
>         ::clone(... flags | siganl, ...);
>     }
> 
> haosdent huang wrote:
>     Got it, let me change to that.
> 
> Jie Yu wrote:
>     I suggest keeping 'flags' for now because 'clone' takes an or'ed flags.
> 
> haosdent huang wrote:
>     Oh, got it. #_#

Why flags can't be or'ed with my suggested implementation? You can still do 
clone(... CLONE_VM|CLONE_NET, SIGCHLD).


- Cong


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/38639/#review100045
-----------------------------------------------------------


On Sept. 23, 2015, 1:26 a.m., haosdent huang wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/38639/
> -----------------------------------------------------------
> 
> (Updated Sept. 23, 2015, 1:26 a.m.)
> 
> 
> Review request for mesos, Jie Yu and Cong Wang.
> 
> 
> Bugs: MESOS-3474
>     https://issues.apache.org/jira/browse/MESOS-3474
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Add os::clone function in stout.
> 
> 
> Diffs
> -----
> 
>   3rdparty/libprocess/3rdparty/stout/include/stout/os/linux.hpp 
> b994b13941628947c9d12b8baae155d5da1ec7bd 
> 
> Diff: https://reviews.apache.org/r/38639/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> haosdent huang
> 
>

Reply via email to