public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* "setup-x86 --quiet-mode" problems
@ 2018-04-19 16:31 Ulli Horlacher
  2018-04-19 16:36 ` Vince Rice
  2018-04-19 23:28 ` Brian Inglis
  0 siblings, 2 replies; 6+ messages in thread
From: Ulli Horlacher @ 2018-04-19 16:31 UTC (permalink / raw)
  To: cygwin

I have an update script which calls "setup-x86 --quiet-mode".
So far, this works great, but now it tries to install a new mintty.exe,
but one mintty still running (where I started setup-x86), so setup-x86
kills this process... and setup-x86.exe is killed, too, which resulted in
a damaged cygwin installation :-(

I was able to fix it by running setup-x86.exe via Windows Explorer (puhhhh!).

How can I avoid this kind of problem in the future?

I tried it with:

setup-x86 --quiet-mode &
sleep 1
kill -9 $PPID

But setup-x86 was killed again, too.


-- 
Ullrich Horlacher              Server und Virtualisierung
Rechenzentrum TIK         
Universitaet Stuttgart         E-Mail: horlacher@tik.uni-stuttgart.de
Allmandring 30a                Tel:    ++49-711-68565868
70569 Stuttgart (Germany)      WWW:    http://www.tik.uni-stuttgart.de/
REF:<20180419163128.GA7093@rus.uni-stuttgart.de>

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: "setup-x86 --quiet-mode" problems
  2018-04-19 16:31 "setup-x86 --quiet-mode" problems Ulli Horlacher
@ 2018-04-19 16:36 ` Vince Rice
  2018-04-19 23:28 ` Brian Inglis
  1 sibling, 0 replies; 6+ messages in thread
From: Vince Rice @ 2018-04-19 16:36 UTC (permalink / raw)
  To: cygwin

> On Apr 19, 2018, at 11:31 AM, Ulli Horlacher wrote:
> 
> I have an update script which calls "setup-x86 --quiet-mode".
> So far, this works great, but now it tries to install a new mintty.exe,
> but one mintty still running (where I started setup-x86), so setup-x86
> kills this process... and setup-x86.exe is killed, too, which resulted in
> a damaged cygwin installation :-(
> 
> I was able to fix it by running setup-x86.exe via Windows Explorer (puhhhh!).
> 
> How can I avoid this kind of problem in the future?
> 
> I tried it with:
> 
> setup-x86 --quiet-mode &
> sleep 1
> kill -9 $PPID
> 
> But setup-x86 was killed again, too.

The way you fixed it already — don't run setup under mintty (or dash or …).
Setup is not a cygwin program (it's not linked to cygwin1.dll).
It's safest to have all of your cygwin processes stopped when you run setup,
anyway, to prevent problems just like this.
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: "setup-x86 --quiet-mode" problems
  2018-04-19 16:31 "setup-x86 --quiet-mode" problems Ulli Horlacher
  2018-04-19 16:36 ` Vince Rice
@ 2018-04-19 23:28 ` Brian Inglis
  2018-04-20 10:23   ` Ulli Horlacher
  1 sibling, 1 reply; 6+ messages in thread
From: Brian Inglis @ 2018-04-19 23:28 UTC (permalink / raw)
  To: cygwin

On 2018-04-19 10:31, Ulli Horlacher wrote:
> I have an update script which calls "setup-x86 --quiet-mode".
> So far, this works great, but now it tries to install a new mintty.exe,
> but one mintty still running (where I started setup-x86), so setup-x86
> kills this process... and setup-x86.exe is killed, too, which resulted in
> a damaged cygwin installation :-(
> I was able to fix it by running setup-x86.exe via Windows Explorer (puhhhh!).
> How can I avoid this kind of problem in the future?
> I tried it with:
> setup-x86 --quiet-mode &
> sleep 1
> kill -9 $PPID
> But setup-x86 was killed again, too.

cygstart .../setup-x86 --quiet-mode ... && sleep 1 && kill -9 $$ $PPID

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: "setup-x86 --quiet-mode" problems
  2018-04-19 23:28 ` Brian Inglis
@ 2018-04-20 10:23   ` Ulli Horlacher
  2018-04-22 14:05     ` Andrey Repin
  0 siblings, 1 reply; 6+ messages in thread
From: Ulli Horlacher @ 2018-04-20 10:23 UTC (permalink / raw)
  To: cygwin

On Thu 2018-04-19 (17:28), Brian Inglis wrote:

> cygstart .../setup-x86 --quiet-mode ... && sleep 1 && kill -9 $$ $PPID

Ahh... cygstart does the trick! :-)
I was not aware of this helper program. Good to know!

-- 
Ullrich Horlacher              Server und Virtualisierung
Rechenzentrum TIK         
Universitaet Stuttgart         E-Mail: horlacher@tik.uni-stuttgart.de
Allmandring 30a                Tel:    ++49-711-68565868
70569 Stuttgart (Germany)      WWW:    http://www.tik.uni-stuttgart.de/
REF:<e22e48aa-d4e4-0b7c-7c53-6f2aecaa297e@SystematicSw.ab.ca>

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: "setup-x86 --quiet-mode" problems
  2018-04-20 10:23   ` Ulli Horlacher
@ 2018-04-22 14:05     ` Andrey Repin
  2018-04-22 16:28       ` Brian Inglis
  0 siblings, 1 reply; 6+ messages in thread
From: Andrey Repin @ 2018-04-22 14:05 UTC (permalink / raw)
  To: Ulli Horlacher, cygwin

Greetings, Ulli Horlacher!

> On Thu 2018-04-19 (17:28), Brian Inglis wrote:

>> cygstart .../setup-x86 --quiet-mode ... && sleep 1 && kill -9 $$ $PPID

> Ahh... cygstart does the trick! :-)
> I was not aware of this helper program. Good to know!

In this specific case, it is better to use

cmd /C START "" "$( cygpath -ma ".\\setup-${ARCH}.exe" )" -O -s "${MIRROR%%/}/" $KEYS "$@" &

So that you detach completely from the cygwin process tree.


-- 
With best regards,
Andrey Repin
Sunday, April 22, 2018 16:43:58

Sorry for my terrible english...


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: "setup-x86 --quiet-mode" problems
  2018-04-22 14:05     ` Andrey Repin
@ 2018-04-22 16:28       ` Brian Inglis
  0 siblings, 0 replies; 6+ messages in thread
From: Brian Inglis @ 2018-04-22 16:28 UTC (permalink / raw)
  To: cygwin

On 2018-04-22 07:51, Andrey Repin wrote:
>> On Thu 2018-04-19 (17:28), Brian Inglis wrote:
>>> cygstart .../setup-x86 --quiet-mode ... && sleep 1 && kill -9 $$ $PPID
>> Ahh... cygstart does the trick! :-)
>> I was not aware of this helper program. Good to know!
> In this specific case, it is better to use
> cmd /C START "" "$( cygpath -ma ".\\setup-${ARCH}.exe" )" -O -s "${MIRROR%%/}/" $KEYS "$@" &
> So that you detach completely from the cygwin process tree.

That's exactly what cygstart does:

$ cygstart .../setup
$ ps -W | egrep 'COMMAND|setup'
 PID  PPID  PGID  WINPID  TTY  UID    STIME COMMAND
7080     0     0    7080  ?      0 10:10:48 C:\...\setup-x86_64.exe

as I use it in a script which kills Cygwin processes after launching setup.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-04-22 16:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-19 16:31 "setup-x86 --quiet-mode" problems Ulli Horlacher
2018-04-19 16:36 ` Vince Rice
2018-04-19 23:28 ` Brian Inglis
2018-04-20 10:23   ` Ulli Horlacher
2018-04-22 14:05     ` Andrey Repin
2018-04-22 16:28       ` Brian Inglis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).