Re: [ANNOUNCEMENT] [1.7] Updated: xinit-1.1.1-5

2009-10-01 Thread Angelo Graziosi

Yaakov (Cygwin/X) wrote:

The following package has been updated for Cygwin 1.7:

* xinit-1.1.1-5

This package includes the startx, startxdmcp.bat, startxwin.bat, and 
startxwin.sh commands for launching the XWin server.

This releases fixes a few bugs in startxwin.{bat,sh}:

* Launch XWin from within a bash login shell, so programs launched by the XWin 
tray menu are within a regular environment.


In 'startxwin.bat' I see:

%RUN% bash -l -c XWin -multiwindow -clipboard -silent-dup-error

Shouldn't it be

%RUN% bash -l -c XWin -multiwindow -clipboard -silent-dup-error  ?


Cheers,
Angelo.

--
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/



Re: [ANNOUNCEMENT] [1.7] Updated: xinit-1.1.1-5

2009-10-01 Thread Charles Wilson
Angelo Graziosi wrote:

 In 'startxwin.bat' I see:
 
 %RUN% bash -l -c XWin -multiwindow -clipboard -silent-dup-error
 
 Shouldn't it be
 
 %RUN% bash -l -c XWin -multiwindow -clipboard -silent-dup-error  ?

No, run implicitly puts the target in the background, unless you add
the '-w' (wait) option.

--
Chuck


--
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/



RE: [ANNOUNCEMENT] [1.7] Updated: xinit-1.1.1-5

2009-10-01 Thread Phil Betts
Charles Wilson wrote:
 Angelo Graziosi wrote:
 
 In 'startxwin.bat' I see:

 %RUN% bash -l -c XWin -multiwindow -clipboard -silent-dup-error

 Shouldn't it be

 %RUN% bash -l -c XWin -multiwindow -clipboard -silent-dup-error  ?
 
 No, run implicitly puts the target in the background, unless you add
 the '-w' (wait) option.

I think Angelo was trying to avoid having an unnecessary bash process
hanging around.  Bash is only used to prepare the environment, so why
not do it like this instead:

%RUN% bash -l -c exec XWin -multiwindow -clipboard -silent-dup-error

i.e. the bash process is replaced by XWin rather than spawning a new
process, putting it in the background, then exiting.  Under *IX, this 
is usually more efficient than Angelo's method, but I don't know if 
this is true under cygwin, given the complexity of getting exec/fork 
etc. to work under Windows.

Phil
-- 


This email has been scanned by Ascribe Ltd using Microsoft Antigen for Exchange.

--
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/



RE: [ANNOUNCEMENT] [1.7] Updated: xinit-1.1.1-5

2009-10-01 Thread Angelo Graziosi

Phil Betts wrote:

I think Angelo was trying to avoid having an unnecessary bash process
hanging around.


Indeed! (I think...)

I have various links on desktop (to start Emacs, mrxvt, xfig, etc.) like 
this:


C:\cygwin-2\bin\run.exe bash -l -c 'rm -rf /tmp/.X11-unix; XWin 
-multiwindow -clipboard -silent-dup-error '


and 'experimentally' adding '' reduces the number of processes, as 
shown by task manager...



so why
not do it like this instead:

%RUN% bash -l -c exec XWin -multiwindow -clipboard -silent-dup-error


interesting... I will give it a try. But, in any case, it would be 
useful to know what Cygwin guys think.



Thanks,
Angelo.

--
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/



Re: [ANNOUNCEMENT] [1.7] Updated: xinit-1.1.1-5

2009-10-01 Thread Angelo Graziosi

Angelo Graziosi ha scritto:

Phil Betts wrote:

I think Angelo was trying to avoid having an unnecessary bash process
hanging around.


Indeed! (I think...)

I have various links on desktop (to start Emacs, mrxvt, xfig, etc.) like 
this:


C:\cygwin-2\bin\run.exe bash -l -c 'rm -rf /tmp/.X11-unix; XWin 
-multiwindow -clipboard -silent-dup-error '


and 'experimentally' adding '' reduces the number of processes, as 
shown by task manager...



so why
not do it like this instead:

%RUN% bash -l -c exec XWin -multiwindow -clipboard -silent-dup-error


interesting... I will give it a try. But, in any case, it would be 
useful to know what Cygwin guys think.


Using 'exec', task manager shows always one more process: bash...


Cheers,
Angelo.

--
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/