-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor: Replace libevent with libuvw in Craned #359
base: master
Are you sure you want to change the base?
Conversation
dd082ef
to
96f7e03
Compare
96f7e03
to
2cd2bd3
Compare
@@ -875,8 +770,8 @@ CraneErr TaskManager::SpawnProcessInInstance_(TaskInstance* instance, | |||
stderr_fd = | |||
open(stderr_file_path.c_str(), O_RDWR | O_CREAT | O_TRUNC, 0644); | |||
if (stderr_fd == -1) { | |||
CRANE_ERROR("[Child Process] Error: open {}. {}", stderr_file_path, | |||
strerror(errno)); | |||
// CRANE_ERROR("[Child Process] Error: open {}. {}", stderr_file_path, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这注释留着也没啥吧
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
会死锁,因为spdlog内部也有互斥锁
int err = istream.GetErrno(); | ||
CRANE_ERROR("Failed to read socket from parent: {}", strerror(err)); | ||
} | ||
// if (!ok) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这LOG为啥关了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spdlog内部也有互斥锁,导致子进程死锁,所以里面的log全关了,而且本来也打不出来日志。
|
||
if (!this_->m_is_ending_now_) { | ||
void TaskManager::SigintCb_() { | ||
absl::MutexLock lock_guard(&m_mtx_); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这边为啥多了一个锁
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
asan检测出来的,不加锁可能会和LaunchTaskInstanceMt_有datarace
f5f02ea
to
c5f0663
Compare
Signed-off-by: Li Junlin <[email protected]>
Signed-off-by: xiafeng <[email protected]>
Signed-off-by: xiafeng <[email protected]>
Signed-off-by: xiafeng <[email protected]>
Signed-off-by: xiafeng <[email protected]>
Signed-off-by: xiafeng <[email protected]>
Signed-off-by: Li Junlin <[email protected]>
Signed-off-by: Li Junlin <[email protected]>
…er fork. Signed-off-by: Li Junlin <[email protected]>
Signed-off-by: Li Junlin <[email protected]>
c5f0663
to
ec93109
Compare
No description provided.