[ 
https://issues.apache.org/jira/browse/LUCY-166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13056223#comment-13056223
 ] 

Marvin Humphrey commented on LUCY-166:
--------------------------------------

Background: [http://cygwin.com/ml/cygwin/2007-10/msg00249.html]

{noformat}
(The reason this PID renaming is necessary is to emulate exec() which
has the semantics of replacing a process with a new one while keeping
the same PID, handles, CWD, and so on.  Windows does not have any such
concept so it has to be emulated by spawning the new process and then
referring to it by the old PID of the parent that has now terminated,
even though this child has a new PID assigned by the OS.)
{noformat}

> Prefer POSIX over windows.h for process ID
> ------------------------------------------
>
>                 Key: LUCY-166
>                 URL: https://issues.apache.org/jira/browse/LUCY-166
>             Project: Lucy
>          Issue Type: Bug
>          Components: Util
>    Affects Versions: 0.1.0 (incubating)
>            Reporter: Marvin Humphrey
>            Priority: Minor
>             Fix For: 0.1.1 (incubating), 0.2.0 (incubating)
>
>
> Cygwin processes have a Cygwin PID in addition to the Windows PID.  Lucy 
> should use the Cygwin PID, which necessitates changing the order of #ifdefs 
> in core/Lucy/Util/ProcessID.c.  This will allow exec() to work properly
> under Cygwin, in addition to fixing a failing test (t/110-shared_lock.t).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to