You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@mesos.apache.org by Michael Park <mp...@apache.org> on 2017/01/10 02:47:39 UTC
Re: Review Request 54595: Introduced an `os::dup` abstraction in
stout.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/54595/
-----------------------------------------------------------
(Updated Jan. 9, 2017, 6:47 p.m.)
Review request for mesos, Daniel Pravat and Joris Van Remoortere.
Changes
-------
Rebased.
Repository: mesos
Description
-------
Introduced an `os::dup` abstraction in stout.
Diffs (updated)
-----
3rdparty/stout/include/Makefile.am 53d04a9b6c4a0d8b35d3c84ef24d619fdb8a2c82
3rdparty/stout/include/stout/os.hpp ed6fec3ac1c1f9dfb0585178401f4b552822a0a1
3rdparty/stout/include/stout/os/dup.hpp PRE-CREATION
3rdparty/stout/include/stout/os/posix/dup.hpp PRE-CREATION
3rdparty/stout/include/stout/os/windows/dup.hpp PRE-CREATION
Diff: https://reviews.apache.org/r/54595/diff/
Testing
-------
Thanks,
Michael Park
Re: Review Request 54595: Introduced an `os::dup` abstraction in
stout.
Posted by Alex Clemmer <cl...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/54595/#review164304
-----------------------------------------------------------
Ship it!
Ship It!
- Alex Clemmer
On Feb. 6, 2017, 2:14 a.m., Michael Park wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/54595/
> -----------------------------------------------------------
>
> (Updated Feb. 6, 2017, 2:14 a.m.)
>
>
> Review request for mesos, Daniel Pravat and Joris Van Remoortere.
>
>
> Repository: mesos
>
>
> Description
> -------
>
> Introduced an `os::dup` abstraction in stout.
>
>
> Diffs
> -----
>
> 3rdparty/stout/include/Makefile.am 53d04a9b6c4a0d8b35d3c84ef24d619fdb8a2c82
> 3rdparty/stout/include/stout/os.hpp ed6fec3ac1c1f9dfb0585178401f4b552822a0a1
> 3rdparty/stout/include/stout/os/dup.hpp PRE-CREATION
> 3rdparty/stout/include/stout/os/posix/dup.hpp PRE-CREATION
> 3rdparty/stout/include/stout/os/windows/dup.hpp PRE-CREATION
>
> Diff: https://reviews.apache.org/r/54595/diff/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Michael Park
>
>
Re: Review Request 54595: Introduced an `os::dup` abstraction in
stout.
Posted by Michael Park <mp...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/54595/
-----------------------------------------------------------
(Updated Feb. 5, 2017, 6:14 p.m.)
Review request for mesos, Daniel Pravat and Joris Van Remoortere.
Changes
-------
Addressed Alex's comments.
Repository: mesos
Description
-------
Introduced an `os::dup` abstraction in stout.
Diffs (updated)
-----
3rdparty/stout/include/Makefile.am 53d04a9b6c4a0d8b35d3c84ef24d619fdb8a2c82
3rdparty/stout/include/stout/os.hpp ed6fec3ac1c1f9dfb0585178401f4b552822a0a1
3rdparty/stout/include/stout/os/dup.hpp PRE-CREATION
3rdparty/stout/include/stout/os/posix/dup.hpp PRE-CREATION
3rdparty/stout/include/stout/os/windows/dup.hpp PRE-CREATION
Diff: https://reviews.apache.org/r/54595/diff/
Testing
-------
Thanks,
Michael Park
Re: Review Request 54595: Introduced an `os::dup` abstraction in
stout.
Posted by Michael Park <mp...@apache.org>.
> On Feb. 5, 2017, 12:59 a.m., Alex Clemmer wrote:
> > 3rdparty/stout/include/stout/os/windows/dup.hpp, line 20
> > <https://reviews.apache.org/r/54595/diff/6/?file=1624397#file1624397line20>
> >
> > Tiny nits: Should we `#include` `try.hpp` and `unreachable.hpp` also? Also, in this case, I thought standard practice was to include `stout/os/int_fd.hpp` instead of the platform-specific header? That's what we do everywhere else.
(1) Included `try.hpp` and `unreachable.hpp`.
(2) The pattern I've followed is to include `os/int_fd.hpp` if I'm actually using `int_fd`, and using it like an `int`.
I've included `os/windows/fd.hpp` in Widows specific files, because including `int_fd.hpp` and using `WindowsFD` seems wrong,
and using `int_fd` and using member functions like `type()` seem also wrong.
- Michael
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/54595/#review164277
-----------------------------------------------------------
On Feb. 5, 2017, 6:14 p.m., Michael Park wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/54595/
> -----------------------------------------------------------
>
> (Updated Feb. 5, 2017, 6:14 p.m.)
>
>
> Review request for mesos, Daniel Pravat and Joris Van Remoortere.
>
>
> Repository: mesos
>
>
> Description
> -------
>
> Introduced an `os::dup` abstraction in stout.
>
>
> Diffs
> -----
>
> 3rdparty/stout/include/Makefile.am 53d04a9b6c4a0d8b35d3c84ef24d619fdb8a2c82
> 3rdparty/stout/include/stout/os.hpp ed6fec3ac1c1f9dfb0585178401f4b552822a0a1
> 3rdparty/stout/include/stout/os/dup.hpp PRE-CREATION
> 3rdparty/stout/include/stout/os/posix/dup.hpp PRE-CREATION
> 3rdparty/stout/include/stout/os/windows/dup.hpp PRE-CREATION
>
> Diff: https://reviews.apache.org/r/54595/diff/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Michael Park
>
>
Re: Review Request 54595: Introduced an `os::dup` abstraction in
stout.
Posted by Alex Clemmer <cl...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/54595/#review164277
-----------------------------------------------------------
3rdparty/stout/include/Makefile.am (line 68)
<https://reviews.apache.org/r/54595/#comment235946>
I think you need to fix this?
3rdparty/stout/include/stout/os/windows/dup.hpp (line 20)
<https://reviews.apache.org/r/54595/#comment235948>
Tiny nits: Should we `#include` `try.hpp` and `unreachable.hpp` also? Also, in this case, I thought standard practice was to include `stout/os/int_fd.hpp` instead of the platform-specific header? That's what we do everywhere else.
3rdparty/stout/include/stout/os/windows/dup.hpp (line 30)
<https://reviews.apache.org/r/54595/#comment235947>
Tiny nit: While this is not wrong _per se_, I think it is probably more correct to write `result == -1`.
3rdparty/stout/include/stout/os/windows/dup.hpp (line 37)
<https://reviews.apache.org/r/54595/#comment235949>
Tiny, tiny nit: we're prefixing other global-scope functions with `::`. Should this one be, too?
- Alex Clemmer
On Feb. 5, 2017, 1:38 a.m., Michael Park wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/54595/
> -----------------------------------------------------------
>
> (Updated Feb. 5, 2017, 1:38 a.m.)
>
>
> Review request for mesos, Daniel Pravat and Joris Van Remoortere.
>
>
> Repository: mesos
>
>
> Description
> -------
>
> Introduced an `os::dup` abstraction in stout.
>
>
> Diffs
> -----
>
> 3rdparty/stout/include/Makefile.am 53d04a9b6c4a0d8b35d3c84ef24d619fdb8a2c82
> 3rdparty/stout/include/stout/os.hpp ed6fec3ac1c1f9dfb0585178401f4b552822a0a1
> 3rdparty/stout/include/stout/os/dup.hpp PRE-CREATION
> 3rdparty/stout/include/stout/os/posix/dup.hpp PRE-CREATION
> 3rdparty/stout/include/stout/os/windows/dup.hpp PRE-CREATION
>
> Diff: https://reviews.apache.org/r/54595/diff/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Michael Park
>
>
Re: Review Request 54595: Introduced an `os::dup` abstraction in
stout.
Posted by Michael Park <mp...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/54595/
-----------------------------------------------------------
(Updated Feb. 4, 2017, 5:38 p.m.)
Review request for mesos, Daniel Pravat and Joris Van Remoortere.
Changes
-------
Rebased.
Repository: mesos
Description
-------
Introduced an `os::dup` abstraction in stout.
Diffs (updated)
-----
3rdparty/stout/include/Makefile.am 53d04a9b6c4a0d8b35d3c84ef24d619fdb8a2c82
3rdparty/stout/include/stout/os.hpp ed6fec3ac1c1f9dfb0585178401f4b552822a0a1
3rdparty/stout/include/stout/os/dup.hpp PRE-CREATION
3rdparty/stout/include/stout/os/posix/dup.hpp PRE-CREATION
3rdparty/stout/include/stout/os/windows/dup.hpp PRE-CREATION
Diff: https://reviews.apache.org/r/54595/diff/
Testing
-------
Thanks,
Michael Park