From 042f1b59bfa8dae71d3bffdf2bb88d1aea304d46 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Wed, 17 Feb 2021 08:10:52 +0100 Subject: [PATCH] examples: update comments Signed-off-by: Joachim Wiberg --- examples/forky.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/forky.c b/examples/forky.c index 753da2b..da56ba4 100644 --- a/examples/forky.c +++ b/examples/forky.c @@ -1,4 +1,4 @@ -/* Example of how to handle signal, in this case Ctrl-C +/* Example with fork and signals, in this case Ctrl-C, from terminal * * A common problem for users of libuEV is how to combine it with the * traditional aspects of UNIX. Since libuEV is just a wrapper for @@ -66,7 +66,7 @@ int main(int argc, char **argv) else robot = "Pusher"; - setsid(); + setsid(); /* puts child in new process group */ uev_init(&ctx); /* example worker, a timer callback */