* - increment incoming_fc_window_size_used_kb when CORE is done
* with incoming packets!
*
+ * for DV)
+ * - send challenges via DV (when DVH is confirmed *and* we care about
+ * the target to get window size, or when DVH is unconfirmed (passive
+ * learning!) to confirm it!)
+ * - handle challenge responses in this case (note: validity period of addresses
+ * will be zero!)
+ * - if available, try to use DV paths when trying to establish
+ * virtual link for a `struct IncomingRequest`. (i.e. if DVH is
+ * unconfirmed, incoming requests also trigger challenge-via-DV!)
+ *
* - review retransmission logic, right now there is no smartness there!
* => congestion control, etc [PERFORMANCE-BASICS]
*
int ret = 0;
(void) val;
- waitpid (child,
- &status,
- 0);
+ waitpid (child, &status, 0);
if (WIFEXITED (status) != 0)
{
ret = WEXITSTATUS (status);
- fprintf (stderr,
- "Process exited with result %u\n",
- ret);
- exit (ret); /* return same status code */
+ fprintf (stderr, "Process exited with result %u\n", ret);
+ _exit (ret); /* return same status code */
}
if (WIFSIGNALED (status) != 0)
{
ret = WTERMSIG (status);
- fprintf (stderr,
- "Process received signal %u\n",
- ret);
- kill (getpid (),
- ret); /* kill self with the same signal */
+ fprintf (stderr, "Process received signal %u\n", ret);
+ kill (getpid (), ret); /* kill self with the same signal */
}
- exit (-1);
+ _exit (-1);
}
static void
sigint_handler (int val)
{
- kill (0,
- val);
- exit (val);
+ kill (0, val);
+ _exit (val);
}
int
-main (int argc,
- char *argv[])
+main (int argc, char *argv[])
{
int timeout = 0;
pid_t gpid = 0;
//setpgrp (0, pid_t gpid);
if (-1 != gpid)
setpgid (0, gpid);
- execvp (argv[2],
- &argv[2]);
+ execvp (argv[2], &argv[2]);
exit (-1);
}
if (child > 0)
sleep (timeout);
printf ("Child processes were killed after timeout of %u seconds\n",
timeout);
- kill (0,
- SIGTERM);
+ kill (0, SIGTERM);
exit (3);
}
exit (-1);