public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: Where is documentation on bash "wait"?
@ 2005-10-15 17:45 Eric Blake
  2005-10-15 20:46 ` Bas van Gompel
  0 siblings, 1 reply; 18+ messages in thread
From: Eric Blake @ 2005-10-15 17:45 UTC (permalink / raw)
  To: Siegfried Heintze, 'Cygwin List'

> I tried info and man and could not find any information on wait. I want to
> (using bash)

Did you try 'man wait'?  That would have pointed you to 'man bash', where
as a bash builtin, wait is properly documented.  Also, 'info bash' will tell you
about bash builtins, or you can try 'help wait' for a short synopsis.

> 
> (1) How do I wait for multiple children and wake up when the first one dies?

wait

> 
> (2) Examine the status code of the dead child and possibly spawn a new one?

I don't know of any way in POSIX to do this, but it is not really specific to
cygwin, so you might try asking a more appropriate mailing list.

--
Eric Blake
volunteer cygwin bash maintainer



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

^ permalink raw reply	[flat|nested] 18+ messages in thread
* RE: Where is documentation on bash "wait"?
@ 2005-10-15 20:52 Stephan Mueller
  0 siblings, 0 replies; 18+ messages in thread
From: Stephan Mueller @ 2005-10-15 20:52 UTC (permalink / raw)
  To: cygwin mailing-list

Perhaps the problem is specific to your configuration -- man wait does
indeed point me to man bash, and the bash manpage does indeed cover wait
(I searched for SHELL BUILTIN COMMANDS based on early text in the page,
and then searched from the top of that section for wait -- worked like a
charm.

stephan();


-----Original Message-----
From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com] On Behalf
Of Bas van Gompel
Sent: Saturday, October 15, 2005 1:46 PM
To: cygwin@cygwin.com
Subject: Re: Where is documentation on bash "wait"?

Op Sat, 15 Oct 2005 17:45:06 +0000 schreef Eric Blake
in
<101520051745.25630.43514022000160940000641E22007614380A050E040D0C079D0A
@comcast.net>:
[What the...]
: > I tried info and man and could not find any information on wait. I
want to
: > (using bash)
:
:  Did you try 'man wait'?  That would have pointed you to 'man bash',
where

Did /you/ try it?

It complains about not finding bash.1.
Do you have a copy of bash.1 lying around somewhere?

To get this to work as I think it is intended, I need to:

1) gunzip /usr/share/man/man1/bash.1.gz and
   /usr/share/man/man1/bash_builtins.1.gz

2) patch /usr/share/man/man1/bash_builtins.1 like so:
--- /usr/share/man/man1/bash_builtins.1~	2005-10-15
21:27:52.000000000 +0200
+++ /usr/share/man/man1/bash_builtins.1	2005-10-15 21:44:33.770000000
+0200
@@ -10,6 +10,6 @@
 ulimit, umask, unalias, unset, wait \- bash built-in commands, see
\fBbash\fR(1)
 .SH BASH BUILTIN COMMANDS
 .nr zZ 1
-.so bash.1
+.so man1/bash.1
 .SH SEE ALSO
 bash(1), sh(1)

3) re-gzip /usr/share/man/man1/bash_builtins.1, but not bash.1


For some reason it doesn't work with a gzipped bash.1.
(A bug in man? It looks like it doesn't gunzip in this case.)

[...]


L8r,

Buzz.
-- 
  ) |  | ---/ ---/  Yes, this | This message consists of true | I do not
--  |  |   /    /   really is |   and false bits entirely.    | mail for
  ) |  |  /    /    a 72 by 4 +-------------------------------+ any1 but
--  \--| /--- /---  .sigfile. |   |perl -pe "s.u(z)\1.as."    | me. 4^re

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


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

^ permalink raw reply	[flat|nested] 18+ messages in thread
* Windows update vs. cygrunsrv
@ 2005-10-12 15:45 Eric Blake
  2005-10-15 16:55 ` Where is documentation on bash "wait"? Siegfried Heintze
  0 siblings, 1 reply; 18+ messages in thread
From: Eric Blake @ 2005-10-12 15:45 UTC (permalink / raw)
  To: Cygwin List

I don't know it this was unique to my machine, but am
reporting it in case anyone else runs into the same
issue.  When running Microsoft update today, on Win2k,
the patch for Security Update for DirectX 9 for Windows
2000 (KB904706) hung during installation, with an
instance of cygrunsrv hogging 100% CPU, until I had
stopped every last one of my cygrunsrv processes.  I
don't know what the Microsoft update was trying to do
to running services during the update, but it obviously
didn't interact very well with cygrunsrv.

Anyways, since stopping everything allowed the installation
to proceed, and the required reboot brought up a working
system, I don't know if it is worth trying to patch cygrunsrv
to behave nicer in the presence of whatever the Windows
upgrade was throwing at it.  Rather, I'm just posting this
as a sort of FYI for anyone else that might encounter the
same behavior.

--
Eric Blake

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

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

end of thread, other threads:[~2005-10-23  0:52 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-15 17:45 Where is documentation on bash "wait"? Eric Blake
2005-10-15 20:46 ` Bas van Gompel
2005-10-15 21:11   ` Eric Blake
2005-10-16  3:47     ` Buzz
2005-10-16  4:01       ` Eric Blake
2005-10-16 21:09         ` Bas van Gompel
2005-10-22 22:44         ` Where is documentation on keyring? Siegfried Heintze
2005-10-23  0:24           ` René Berber
2005-10-23  0:52           ` Gerrit P. Haase
2005-10-16 10:11       ` Where is documentation on bash "wait"? Dr. Volker Zell
2005-10-16 21:09         ` Bas van Gompel
2005-10-16 22:57           ` EventListening Peace Everyone
2005-10-16 23:10             ` EventListening Larry Hall (Cygwin)
2005-10-16 23:57               ` EventListening Peace Everyone
2005-10-17  1:03                 ` EventListening Larry Hall (Cygwin)
  -- strict thread matches above, loose matches on Subject: below --
2005-10-15 20:52 Where is documentation on bash "wait"? Stephan Mueller
2005-10-12 15:45 Windows update vs. cygrunsrv Eric Blake
2005-10-15 16:55 ` Where is documentation on bash "wait"? Siegfried Heintze
2005-10-15 18:12   ` Andrew DeFaria

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).