Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
77f9069c
Commit
77f9069c
authored
May 12, 2004
by
tomas@mc05.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Daemon code to run on all unixes
parent
ac92bd58
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
ndb/src/common/portlib/unix/NdbDaemon.c
ndb/src/common/portlib/unix/NdbDaemon.c
+3
-3
ndb/src/common/portlib/win32/NdbDaemon.c
ndb/src/common/portlib/win32/NdbDaemon.c
+5
-2
No files found.
ndb/src/common/portlib/unix/NdbDaemon.c
View file @
77f9069c
...
...
@@ -18,11 +18,10 @@
#include "NdbDaemon.h"
#define NdbDaemon_ErrorSize 500
#if defined(NDB_LINUX) || defined(NDB_SOLARIS)
/* XXX fix other unixes */
long
NdbDaemon_DaemonPid
;
int
NdbDaemon_ErrorCode
;
char
NdbDaemon_ErrorText
[
NdbDaemon_ErrorSize
];
int
NdbDaemon_Make
(
const
char
*
lockfile
,
const
char
*
logfile
,
unsigned
flags
)
{
...
...
@@ -130,7 +129,8 @@ NdbDaemon_Make(const char* lockfile, const char* logfile, unsigned flags)
/* Success */
return
0
;
}
#else
#if 0
int
NdbDaemon_Make(const char* lockfile, const char* logfile, unsigned flags)
{
...
...
ndb/src/common/portlib/win32/NdbDaemon.c
View file @
77f9069c
...
...
@@ -14,6 +14,7 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <ndb_global.h>
#include "NdbDaemon.h"
#define NdbDaemon_ErrorSize 500
...
...
@@ -24,8 +25,10 @@ char NdbDaemon_ErrorText[NdbDaemon_ErrorSize];
int
NdbDaemon_Make
(
const
char
*
lockfile
,
const
char
*
logfile
,
unsigned
flags
)
{
// XXX do something
return
0
;
/* Fail */
snprintf
(
NdbDaemon_ErrorText
,
NdbDaemon_ErrorSize
,
"Daemon mode not implemented"
);
return
-
1
;
}
#ifdef NDB_DAEMON_TEST
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment