d38b3890d2
git-svn-id: svn://kolibrios.org@9207 a494cfbc-eb01-0410-851d-a64ba20cac60
12 lines
227 B
C
12 lines
227 B
C
#include <shell_api.h>
|
|
#include <string.h>
|
|
|
|
unsigned shell_get_pid()
|
|
{
|
|
unsigned pid;
|
|
__shell_init();
|
|
*__shell_shm = SHELL_PID;
|
|
__SHELL_WAIT();
|
|
memcpy(&pid, __shell_shm+1, sizeof(unsigned));
|
|
return pid;
|
|
} |