]> git.meshlink.io Git - meshlink/blobdiff - test/blackbox/common/tcpdump.c
Add meta-connection attempt callback feature
[meshlink] / test / blackbox / common / tcpdump.c
index a0933f73092c3e9716c0319b3cbff78811c6f58f..422c397ecbfd0278e8fddd082689cb31e698f881 100644 (file)
@@ -32,7 +32,7 @@ pid_t tcpdump_start(char *interface) {
        char *argv[] = { "tcpdump", "-i", interface, NULL };
        // child process have a pipe to the parent process when parent process terminates SIGPIPE kills the tcpdump
        int pipes[2];
-       pipe(pipes);
+       assert(pipe(pipes) != -1);
        PRINT_TEST_CASE_MSG("\x1b[32mLaunching TCP Dump ..\x1b[0m\n");
 
        if((tcpdump_pid = fork()) == 0) {