> On Aug. 28, 2015, 4:45 p.m., Cong Wang wrote: > > Why? Everyone knows kill(2) sends a signal while signal(2) installs a > > signal handler... > > Jie Yu wrote: > IMO, that naming is confusing, and should be 'signal' and 'install'. > > Joerg Schad wrote: > This is actually answering a discussion here > https://reviews.apache.org/r/36620/#comment152376. And I agree that the > original names are weird, but you are right in that we should have an open > discussion about this. I will send a mail to dev later on... > > Cong Wang wrote: > Like it or not, it is already a part of POSIX (if not just UNIX), > pthread_kill() has the same "problem". It's just too late to change, as it > simply breaks every programmer's expectation.
This is cgroups::signal and cgroups::kill (has nothing to do with Posix kill and signal). It reads more natural: signal a cgroup, kill a cgroup. I don't think it'll confuse the reader. Are you suggesting that any thing suffixed with 'kill' should be linked to kill(2) in posix? I have to disagree with that. - Jie ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/37894/#review96883 ----------------------------------------------------------- On Aug. 28, 2015, 4:39 p.m., Joerg Schad wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/37894/ > ----------------------------------------------------------- > > (Updated Aug. 28, 2015, 4:39 p.m.) > > > Review request for mesos, Jie Yu, Till Toenshoff, and Timothy Chen. > > > Bugs: MESOS-3086 > https://issues.apache.org/jira/browse/MESOS-3086 > > > Repository: mesos > > > Description > ------- > > As this function is actually just sending the signal we renamed it. > Additionally we want to introduce an actual cgroups::kill() with MESOS-3086. > > > Diffs > ----- > > src/linux/cgroups.hpp 204c53038a1ccfa693f4f2293488cff8cdd60835 > src/linux/cgroups.cpp 6ef42ed1bc719f334d1ac6e90919a1bc1840d31f > src/tests/containerizer/cgroups_tests.cpp > 0b171eeb53037f26b7e952830e88e59f1278e7c6 > > Diff: https://reviews.apache.org/r/37894/diff/ > > > Testing > ------- > > > Thanks, > > Joerg Schad > >