mirror of
https://gitee.com/openharmony/startup_init
synced 2024-11-24 00:30:12 +00:00
modify: socket service ondemand adapt L1 & L2
Signed-off-by: xionglei6 <xionglei6@huawei.com>
This commit is contained in:
parent
0dd79435e4
commit
de48170d4c
@ -110,7 +110,7 @@ static void ProcessWatchEvent_(const WatcherHandle watcherHandle, int fd, uint32
|
||||
{
|
||||
*events = 0;
|
||||
Service *service = (Service *)context;
|
||||
ServiceSocket *tmpSock = service->socketCfg;;
|
||||
ServiceSocket *tmpSock = service->socketCfg;
|
||||
while (tmpSock != NULL) {
|
||||
if (tmpSock->sockFd == fd) {
|
||||
tmpSock->watcher = NULL;
|
||||
|
@ -70,4 +70,4 @@ if (defined(ohos_lite)) {
|
||||
defines = [ "_GNU_SOURCE" ]
|
||||
part_name = "init"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user