On Wed, 15 Oct 2003, Stas Bekman wrote:

> +#if APR_HAVE_UNISTD_H
> +/* for getpid() */
> +#include <unistd.h>
> +#endif
> +    ap_rprintf(r, "<P>Process ID: %lu, Parent Process ID: %lu",
> +               (unsigned long)getpid(), (unsigned long)getppid());
> +#if APR_HAS_THREADS
> +    ap_rprintf(r, ", Thread ID: %lu", (unsigned long)apr_os_thread_current());
> +#endif

Is there no truly portable way to do this?

--Cliff

Reply via email to