diff --git a/initsync/include/init_stage.h b/initsync/include/init_stage.h index 7d5b7848b38e6f62cf6c707df5b8d38911d18800..b26e150118108c097f153bdbd0ef35ffacdad274 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 36bde484fe9c2e3859840b1dbbd708aee72ac6fb..53a1b18cae5eec88c24e7950aea9c0717de524f4 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 70c01f4c76c33ee18e3b53417adad0d3eb348e77..c45b5f40e05728f928a3d4fde03b95ee0c160217 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 082174c5afef23683bcb43f5e3324629f982eafa..0cd8eb729fbb241d362844fae6c2e7852e28f961 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 652ad3eeb509c15d69f53afdbf3f70168e058342..043b2f14f3c2903dc7b783dc3c091d8bfe02ef23 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 74f460e82ba00d7da831b04e6f89dfaa6ec57f39..966c4d6017ec60b4c7dfb1e565c0a5847bf5ba89 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 7a8e0c79de98f45e2d9b4a2f1cd1cfc9b2c39166..36f91dea4672f06740d1325923c4f9c5c63c945b 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 bf2f0d3a86305e7e3bac1f603c94f01e8f5093f9..a616673fdcebd046670817dbdce9071c00057f83 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 2db0b854ac191f986293d9ff19f5d28efe5c07c6..f453aa9ab1320132c9d2363eb3066a32f76ad5c8 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 08f97d066209706e9c5c230536112ed9d15c885b..87713e16744b6b730e36339d4a49696604ed7724 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 a3069b26e3d6af7f18cbd1ea328128ba4ccdc664..45c91d867c476e354ee8bdbfc0e5454108b442cf 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 74d0bc3af16c1c47d70d8cf01898ead8c0856eec..48d18062d314279da414671f9b870d3428a9cd44 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 3cb8865ac5568e364293e30f0b982edae1db92c7..b82a09113938a1fa5bc215cd67ddab6b50863266 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 d9701e3c921e4e906933f1ff0038380b6d5388d0..976a8268f1524de14d25d352475178f6015be116 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 a49cb1df6375dedf9826fa1d4fd2cc3be6359732..be677f650e28f1c3ece2d98212881447d9cbd4f5 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 b2ad4bbf8c915e744375b499b33622e8c18c05ed..7f64267eaa663e3ee133284c0c4ff7cf4683e570 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 41e68e65aef57457017326301cca76919e52b232..3fb650479bcc6d93cc65c6aa49304ee798578127 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 87a71c98762c8ab8d3913291c9fab493d6899bde..4b3f3a92f9ca479366dcb0d01949eafc745c3d9e 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 c92147e6357d91258f06b35ada283aea99fd846b..2395e1aeee3a55ad12364d503ba06f7d6407f465 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 b3598621835c3b8fdad1dc8947195227cbb1c3e9..f78d407b39dd04f323f4cd73abe0f527a5e88dc5 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 53d9de1f6a4de44f73c09613a6a47034df50b6b0..3c6e980fad05f6d8b5e724656ff71048d6d598cc 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 dde90cd7128af1867d1dbbf649580d5a02537329..8d4b3618938ce703cd42fd47b1ccea89cafe218f 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 10dd527f534a58d473937a0ed6bcd6617a97018c..abd0e3177624590b8393454f6172240b6fd402b9 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 87cee44092027d7d3314e2de2be43e5bd5ae9c9e..ad601544ce9e3ccc8feaf7fe047990afe42cdc75 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 e74a0c3bf6c60607998a7ea88305f3a93cd75bbd..ef425140bb63325f5ab0043172ac2314c60425d5 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 95aef0e0d286806c0acd7cc94c358847cce27477..19a83ae8f97b456db136c8d22c5f797ba80cda96 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 596e80df6ec280b1c8cc6c1979d3b092b8101128..e5c7218b43569e0626268293b39e4a38db246ea3 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