[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
good way to get the PID on all platforms?
From: |
David Wetzel |
Subject: |
good way to get the PID on all platforms? |
Date: |
Wed, 10 Jan 2001 13:46:45 +0100 (CET) |
Hi folks,
how can I get the PID of my app on OPENSTEP/Win/GNUstep?
this is not very cool on OS:
int pid;
#ifdef WIN32
pid = (int) getpid();
#else
pid = (int) getppid();
#endif
NSLog(@"PID is %d", pid);
Jan 10 13:38:14 TCMail[1364] PID is 1276
Any ideas?
Thanks in advance.
Dave
---
_ _
_(_)(_)_ David Wetzel, Turbocat's Development,
(_) __ (_) Buchhorster Strasse 23, D-16567 Muehlenbeck/Berlin, FRG,
_/ \_ Fax +49 33056 82835 NeXTmail dave@turbocat.de
(______) http://www.turbocat.de/
DEVELOPMENT * CONSULTING * ADMINISTRATION
- good way to get the PID on all platforms?,
David Wetzel <=