This is the mail archive of the cygwin mailing list for the Cygwin 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: cygwin + xwin in win7 as unprivileged user?

Jon TURNEY wrote:
> On 06/10/2010 16:10, davidstvz wrote:
>> I have done additional testing on this problem and it seems that the
>> first
>> user to login and run 'startxwin' owns all of the log and lock files and
>> this is what is causing the problem.  The first user can continue using
>> xwin
>> without issues, but no other users can do it after that.
>> If someone would upgrade xwin to to make these file names unique for each
>> user it should solve the problem.  Meanwhile, I'm envisioning several
>> workarounds.
> The log file issue is discussed and a workaround given at [1]
> The lock file should be removed on xwin exit, so should not be a problem
> unless xwin is crashing for you, in which case report that problem.
> Making the lock file name unique per user is a non-solution, as it
> prevents it 
> from locking against multiple simultaneous uses of the same display
> number.
> [1]
> -- 
> Volunteer Cygwin/X X Server maintainer
> --
> Problem reports:
> FAQ:         
> Documentation:
> Unsubscribe info:

Ah, I see how that is a non-solution.  I should stick to what I know.

In any case, XWin is not crashing per se, instead when I type "exit" from
the initial xterminal and exit cygwin (or press the windows close button) it
remains running in the background.  So to open it again, I have to first
terminate it from the task manager which I suppose qualifies as a crash.

I've solved the problem by scheduling a task to delete the log and lock
files when any user logs in (well, to mostly delete; windows refuses to let
me delete the socket file descriptor so I had to rename it to a random
View this message in context:
Sent from the Cygwin list mailing list archive at

Problem reports:
Unsubscribe info:

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