diff --git a/initsync/include/init_stage.h b/initsync/include/init_stage.h index 7d5b784..b26e150 100644 --- a/initsync/include/init_stage.h +++ b/initsync/include/init_stage.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2020-2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/services/BUILD.gn b/services/BUILD.gn index 36bde48..53a1b18 100755 --- a/services/BUILD.gn +++ b/services/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Huawei Device Co., Ltd. +# Copyright (c) 2020-2021 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at diff --git a/services/include/init_jobs.h b/services/include/init_jobs.h index 70c01f4..c45b5f4 100755 --- a/services/include/init_jobs.h +++ b/services/include/init_jobs.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2020-2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/services/init/adapter/init_adapter.c b/services/init/adapter/init_adapter.c index 082174c..0cd8eb7 100755 --- a/services/init/adapter/init_adapter.c +++ b/services/init/adapter/init_adapter.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2020-2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/services/init/include/device.h b/services/init/include/device.h index 652ad3e..043b2f1 100755 --- a/services/init/include/device.h +++ b/services/init/include/device.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2020-2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/services/init/include/init.h b/services/init/include/init.h index 74f460e..966c4d6 100755 --- a/services/init/include/init.h +++ b/services/init/include/init.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2020-2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/services/init/include/init_adapter.h b/services/init/include/init_adapter.h index 7a8e0c7..36f91de 100755 --- a/services/init/include/init_adapter.h +++ b/services/init/include/init_adapter.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2020-2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/services/init/include/init_cmds.h b/services/init/include/init_cmds.h index bf2f0d3..a616673 100755 --- a/services/init/include/init_cmds.h +++ b/services/init/include/init_cmds.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2020-2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/services/init/include/init_jobs_internal.h b/services/init/include/init_jobs_internal.h index 2db0b85..f453aa9 100755 --- a/services/init/include/init_jobs_internal.h +++ b/services/init/include/init_jobs_internal.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2020-2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/services/init/include/init_service.h b/services/init/include/init_service.h index 08f97d0..87713e1 100755 --- a/services/init/include/init_service.h +++ b/services/init/include/init_service.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2020-2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/services/init/include/init_service_manager.h b/services/init/include/init_service_manager.h index a3069b2..45c91d8 100755 --- a/services/init/include/init_service_manager.h +++ b/services/init/include/init_service_manager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2020-2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/services/init/init_capability.c b/services/init/init_capability.c index 74d0bc3..48d1806 100755 --- a/services/init/init_capability.c +++ b/services/init/init_capability.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2020-2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/services/init/init_common_cmds.c b/services/init/init_common_cmds.c index 3cb8865..b82a091 100755 --- a/services/init/init_common_cmds.c +++ b/services/init/init_common_cmds.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2020-2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/services/init/init_config.c b/services/init/init_config.c index d9701e3..976a826 100755 --- a/services/init/init_config.c +++ b/services/init/init_config.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2020-2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/services/init/init_service_manager.c b/services/init/init_service_manager.c index a49cb1d..be677f6 100755 --- a/services/init/init_service_manager.c +++ b/services/init/init_service_manager.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2020-2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/services/init/lite/init.c b/services/init/lite/init.c index b2ad4bb..7f64267 100755 --- a/services/init/lite/init.c +++ b/services/init/lite/init.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2020-2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/services/init/lite/init_cmds.c b/services/init/lite/init_cmds.c index 41e68e6..3fb6504 100755 --- a/services/init/lite/init_cmds.c +++ b/services/init/lite/init_cmds.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2020-2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/services/init/lite/init_jobs.c b/services/init/lite/init_jobs.c index 87a71c9..4b3f3a9 100755 --- a/services/init/lite/init_jobs.c +++ b/services/init/lite/init_jobs.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2020-2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/services/init/lite/init_service.c b/services/init/lite/init_service.c index c92147e..2395e1a 100755 --- a/services/init/lite/init_service.c +++ b/services/init/lite/init_service.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2020-2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/services/init/lite/init_signal_handler.c b/services/init/lite/init_signal_handler.c index b359862..f78d407 100755 --- a/services/init/lite/init_signal_handler.c +++ b/services/init/lite/init_signal_handler.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2020-2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/services/init/main.c b/services/init/main.c index 53d9de1..3c6e980 100755 --- a/services/init/main.c +++ b/services/init/main.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2020-2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/services/init/standard/device.c b/services/init/standard/device.c index dde90cd..8d4b361 100755 --- a/services/init/standard/device.c +++ b/services/init/standard/device.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2020-2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/services/init/standard/init.c b/services/init/standard/init.c index 10dd527..abd0e31 100755 --- a/services/init/standard/init.c +++ b/services/init/standard/init.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2020-2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/services/init/standard/init_jobs.c b/services/init/standard/init_jobs.c index 87cee44..ad60154 100755 --- a/services/init/standard/init_jobs.c +++ b/services/init/standard/init_jobs.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2020-2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/services/init/standard/init_service.c b/services/init/standard/init_service.c index e74a0c3..ef42514 100755 --- a/services/init/standard/init_service.c +++ b/services/init/standard/init_service.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2020-2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -68,6 +68,9 @@ int ServiceExec(const Service *service) _exit(0x7f); // 0x7f: user specified } } + if (unsetenv("UV_THREADPOOL_SIZE") != 0) { + INIT_LOGE("set UV_THREADPOOL_SIZE error : %d.", errno); + } // L2 Can not be reset env if (execv(service->pathArgs.argv[0], service->pathArgs.argv) != 0) { INIT_LOGE("service %s execve failed! err %d.", service->name, errno); diff --git a/services/test/unittest/common/BUILD.gn b/services/test/unittest/common/BUILD.gn index 95aef0e..19a83ae 100755 --- a/services/test/unittest/common/BUILD.gn +++ b/services/test/unittest/common/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Huawei Device Co., Ltd. +# Copyright (c) 2020 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at diff --git a/services/test/unittest/common/cmd_func_test.cpp b/services/test/unittest/common/cmd_func_test.cpp index 596e80d..e5c7218 100755 --- a/services/test/unittest/common/cmd_func_test.cpp +++ b/services/test/unittest/common/cmd_func_test.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2020 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at