Open Bug 932070 Opened 12 years ago Updated 3 years ago

implement cross-platform getpid

Categories

(NSPR :: NSPR, enhancement)

enhancement

Tracking

(Not tracked)

People

(Reporter: keeler, Unassigned)

Details

It would be nice to have a standard, cross-platform getpid (i.e. a way to get the current process id). That way, we don't have to do things like this everywhere we want it: #ifdef XP_WIN #include <process.h> #define getpid _getpid #else #include <unistd.h> #endif (see https://mxr.mozilla.org/mozilla-central/ident?i=_getpid )

The bug assignee is inactive on Bugzilla, so the assignee is being reset.

Assignee: wtc → nobody
Severity: normal → --
Type: defect → enhancement
You need to log in before you can comment on or make changes to this bug.