Skip to content
Snippets Groups Projects
Commit 02d4cca6 authored by patacongo's avatar patacongo
Browse files

Add a start hook that can be setup to call a function in the context of a new...

Add a start hook that can be setup to call a function in the context of a new thread before the new threads main() has been called.

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5571 42af7a65-404d-4744-a932-0658087f49c3
parent d3610168
No related branches found
No related tags found
No related merge requests found
......@@ -161,7 +161,7 @@ int main(int argc, char **argv)
/* Send SIGUSR1 to ourselves via kill() */
printf("Kill-ing SIGUSR1 from pid=%d\n", mypid);
status = kill(0, SIGUSR1);
status = kill(mypid, SIGUSR1);
if (status != 0)
{
fprintf(stderr, "Failed to kill SIGUSR1, errno=%d\n", errno);
......
......@@ -161,7 +161,7 @@ int main(int argc, char **argv)
/* Send SIGUSR1 to ourselves via kill() */
printf("Kill-ing SIGUSR1 from pid=%d\n", mypid);
status = kill(0, SIGUSR1);
status = kill(mypid, SIGUSR1);
if (status != 0)
{
fprintf(stderr, "Failed to kill SIGUSR1, errno=%d\n", errno);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment