Projects
openEuler:22.03:LTS:LoongArch
libdaemon
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 3
View file
_service:tar_scm_kernel_repo:libdaemon.spec
Changed
@@ -1,11 +1,13 @@ Name: libdaemon Version: 0.14 -Release: 20 +Release: 21 Summary: A lightweight daemon framework in C License: LGPLv2+ URL: http://0pointer.de/lennart/projects/libdaemon/ Source0: http://0pointer.de/lennart/projects/libdaemon/%{name}-%{version}.tar.gz +Patch0001:0001-examples-testd.c-fix-some-typos.patch + BuildRequires: gcc lynx %description @@ -53,6 +55,12 @@ %{_datadir}/doc/%{name}/* %changelog +* Tue May 31 2022 Bin Hu<hubin73@huawei.com> - 0.14-21 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:examples/testd.c: fix some typos + * Fri Oct 18 2019 fangyufa<fangyufa1@huawei.com> - 0.14-20 - Type:bugfix - ID:NA
View file
_service:tar_scm_kernel_repo:0001-examples-testd.c-fix-some-typos.patch
Added
@@ -0,0 +1,62 @@ +From a0db47669967975f5a7fd48ffa581539effdcfca Mon Sep 17 00:00:00 2001 +From: hubin <hubin73@huawei.com> +Date: Tue, 31 May 2022 14:36:28 +0800 +Subject: [PATCH] examples/testd.c: fix some typos + +Signed-off-by: hubin <hubin73@huawei.com> +--- + examples/testd.c | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) + +diff --git a/examples/testd.c b/examples/testd.c +index 6557dff..3a8650e 100644 +--- a/examples/testd.c ++++ b/examples/testd.c +@@ -47,7 +47,7 @@ int main(int argc, char *argv[]) { + return 1; + } + +- /* Set indetification string for the daemon for both syslog and PID file */ ++ /* Set indentification string for the daemon for both syslog and PID file */ + daemon_pid_file_ident = daemon_log_ident = daemon_ident_from_argv0(argv[0]); + + /* Check if we are called with -k parameter */ +@@ -63,7 +63,7 @@ int main(int argc, char *argv[]) { + return ret < 0 ? 1 : 0; + } + +- /* Check that the daemon is not rung twice a the same time */ ++ /* Check that the daemon is not running twice at the same time */ + if ((pid = daemon_pid_file_is_running()) >= 0) { + daemon_log(LOG_ERR, "Daemon already running on PID file %u", pid); + return 1; +@@ -87,7 +87,7 @@ int main(int argc, char *argv[]) { + + /* Wait for 20 seconds for the return value passed from the daemon process */ + if ((ret = daemon_retval_wait(20)) < 0) { +- daemon_log(LOG_ERR, "Could not recieve return value from daemon process: %s", strerror(errno)); ++ daemon_log(LOG_ERR, "Could not receive return value from daemon process: %s", strerror(errno)); + return 255; + } + +@@ -127,7 +127,7 @@ int main(int argc, char *argv[]) { + /* Send OK to parent process */ + daemon_retval_send(0); + +- daemon_log(LOG_INFO, "Sucessfully started"); ++ daemon_log(LOG_INFO, "Successfully started"); + + /* Prepare for select() on the signal fd */ + FD_ZERO(&fds); +@@ -148,7 +148,7 @@ int main(int argc, char *argv[]) { + break; + } + +- /* Check if a signal has been recieved */ ++ /* Check if a signal has been received */ + if (FD_ISSET(fd, &fds2)) { + int sig; + +-- +1.8.3.1 +
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.