projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sessiond: main.cpp: iterate on list using list_iteration_adapter
[lttng-tools.git]
/
tests
/
regression
/
ust
/
daemon
/
daemon.c
diff --git
a/tests/regression/ust/daemon/daemon.c
b/tests/regression/ust/daemon/daemon.c
index faf204f9bcb73284dd2ccf36c96ecea92c0388cd..1ce1b50df81f13a60e1f260f16dc456f3bd647be 100644
(file)
--- a/
tests/regression/ust/daemon/daemon.c
+++ b/
tests/regression/ust/daemon/daemon.c
@@
-7,23
+7,18
@@
*/
#include <stdio.h>
*/
#include <stdio.h>
-#include <unistd.h>
-#include <sys/types.h>
#include <stdlib.h>
#include <stdlib.h>
+#include <sys/types.h>
+#include <unistd.h>
#define TRACEPOINT_DEFINE
#define TRACEPOINT_CREATE_PROBES
#include "ust_tests_daemon.h"
#define TRACEPOINT_DEFINE
#define TRACEPOINT_CREATE_PROBES
#include "ust_tests_daemon.h"
-int main(
int argc, char **argv, char *env[]
)
+int main(
void
)
{
int result;
{
int result;
- if (argc < 1) {
- fprintf(stderr, "usage: daemon\n");
- exit(1);
- }
-
pid_t parent_pid = getpid();
printf("parent_pid %d\n", parent_pid);
tracepoint(ust_tests_daemon, before_daemon, parent_pid);
pid_t parent_pid = getpid();
printf("parent_pid %d\n", parent_pid);
tracepoint(ust_tests_daemon, before_daemon, parent_pid);
This page took
0.024187 seconds
and
4
git commands to generate.