Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. #include <shell_api.h>
  2. #include <string.h>
  3.  
  4. unsigned shell_get_pid()
  5. {
  6.     unsigned pid;
  7.     __shell_init();
  8.     *__shell_shm = SHELL_PID;
  9.     __SHELL_WAIT();
  10.     memcpy(&pid, __shell_shm+1, sizeof(unsigned));
  11.     return pid;
  12. }