-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Unix.getpid returns wrong result #4034
Copy link
Copy link
Closed
Description
Original bug ID: 4034
Reporter: Christoph Bauer
Status: acknowledged (set by @xavierleroy on 2006-06-10T09:11:56Z)
Resolution: open
Priority: normal
Severity: feature
OS: Windows
Version: 3.09.2
Category: otherlibs
Tags: patch
Monitored by: @nojb @dra27 @alainfrisch
Bug description
Unix.getpid returns a wrong (non-existing) processid.
To reproduce:
ocaml unix.cma
# Unix.getpid ();;
A working implementation of getpid.c could be
#include <mlvalues.h>
#include "unixsupport.h"
CAMLprim value unix_getpid(value unit)
{
return Val_int( getpid() );
}File attachments
Reactions are currently unavailable