Skip to content

Commit

Permalink
Merge pull request #1216 from LudwigOrtmann/issue-1215
Browse files Browse the repository at this point in the history
native: set _native_pid correctly in daemon mode
  • Loading branch information
Kijewski committed May 20, 2014
2 parents 8aa78ed + c9f68e7 commit 06eb95d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cpu/native/startup.c
Expand Up @@ -146,6 +146,9 @@ void daemonize(void)
real_printf("RIOT pid: %d\n", _native_pid);
exit(EXIT_SUCCESS);
}
else {
_native_pid = real_getpid();
}
}

void usage_exit(void)
Expand Down

0 comments on commit 06eb95d

Please sign in to comment.