12345678910111213141516171819202122 |
- /*
- * mycodaemon.c
- */
- #include <stdio.h>
- #include <stdlib.h>
- #include <unistd.h>
- #include <signal.h>
- #include <sys/types.h>
- #include <sys/stat.h>
- #include <syslog.h>
- #include "../src/myco-daemon.c"
- int main() {
- if (myco_daemon_start(getpid(), "127.0.0.1", "127.0.0.1") == -1) {
- return EXIT_FAILURE;
- }
- return EXIT_SUCCESS;
- }
|