blob: 0abf53ee988819473e7c5dd695fdf928a43888f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#include <opie2/oprocess.h>
#include <iostream.h>
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;
}
|