Arc Forumnew | comments | leaders | submitlogin
How to getpid in Arc 3.1
3 points by lark 3965 days ago | 1 comment
If anyone is looking how to getpid in Arc3.1, here's a patch that does it

  Index: ac.scm
  ===================================================================
  --- ac.scm	(revision 1)
  +++ ac.scm	(working copy)
  @@ -1032,6 +1032,9 @@
   (define setuid (get-ffi-obj 'setuid #f (_fun _int -> _int)))
   (xdef setuid setuid)
 
  +(define getpid (get-ffi-obj 'getpid #f (_fun -> _int)))
  +(xdef getpid getpid)
  +


1 point by akkartik 3965 days ago | link

Thanks!

-----