blob: 2193565a45276fde3f852f9b97a1f1964c51437b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include <opie2/oprocess.h>
#include <iostream>
using namespace Opie::Core;
int main( int argc, char** argv )
{
printf( "my own PID seems to be '%d'\n", OProcess::processPID( "oprocessdemo" ) );
printf( "the PID of process 'Mickey' seems to be '%d'\n\n", OProcess::processPID( "Mickey" ) );
return 0;
}
|