Projects
openEuler:24.03:SP1:Everything
libdaemon
_service:tar_scm:0001-examples-testd.c-fix-some...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:0001-examples-testd.c-fix-some-typos.patch of Package libdaemon
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
.
浙ICP备2022010568号-2