This is the mail archive of the cygwin-xfree mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: I Cannot Start the X Server


You are right. I see that in looking through the cygwin source for
unlink. I am trying to understand what can cause the link failure by
reviewing the link source.


On Sun, Feb 15, 2009 at 7:57 AM, Jon TURNEY <jon.turney@dronecode.org.uk> wrote:
> Jon TURNEY wrote:
>>>
>>> From ProcMon it looks like /tmp/.tX0-lock is being deleted before it is
>>> moved.
>>>
>>> Specifically, it is being opened with options: Synchronous IO Non-Alert,
>>> Non-Directory File, Delete On Close
>>>
>>> The file is then closed and re-opened and the re-open fails because it no
>>> longer exists.
>>
>> Thanks for the information.
>>
>> As you can see from LockServer() function in
>> http://cgit.freedesktop.org/xorg/xserver/tree/os/utils.c, the sequence of
>> actions should be
>>
>> open(tmp)
>> write()
>> close()
>> link(tmp,lock)
>> unlink(tmp)
>>
>> and the failure seems to be that the link() doesn't succeed.  So having
>> the file "delete-on-close" does explain what is seen.
>>
>> Any insight into why "delete-on-close" is being requested?
>
> Actually, looking into this a bit more, 'delete-on-close' is used for the
> unlink operation, so I'm not sure what to make of what you are telling me.
>
> Is there any chance you could provide the relevant section of the ProcMon
> output, and the output of 'strace Xwin' ?
>

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]