Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
sashacmc committed Dec 13, 2024
1 parent 0aabc65 commit 09a2775
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions examples/unix/c11/z_liveliness.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
#if Z_FEATURE_LIVELINESS == 1

static volatile int keepRunning = 1;

/*
void intHandler(int dummy) {
(void)dummy;
keepRunning = 0;
}

*/
int main(int argc, char **argv) {
const char *keyexpr = "group1/zenoh-pico";
const char *mode = "client";
Expand Down Expand Up @@ -98,7 +98,7 @@ int main(int argc, char **argv) {
}

printf("Press CTRL-C to undeclare liveliness token and quit...\n");
signal(SIGINT, intHandler);
// signal(SIGINT, intHandler);
while (keepRunning) {
z_sleep_s(1);
}
Expand Down
4 changes: 2 additions & 2 deletions tests/memory_leak.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ def query_and_queryable(query_cmd, queryable_cmd):
time.sleep(2)
if z_queryable_process.poll() is None:
# send SIGINT to group
z_quaryable_process_gid = os.getpgid(z_queryable_process.pid)
os.killpg(z_quaryable_process_gid, signal.SIGINT)
#z_quaryable_process_gid = os.getpgid(z_queryable_process.pid)
#os.killpg(z_quaryable_process_gid, signal.SIGINT)

# Wait for z_queryable to finish
z_queryable_process.wait()
Expand Down

0 comments on commit 09a2775

Please sign in to comment.