public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Michael Rumpf" <michael@rumpfonline.de>
To: <cygwin@cygwin.com>
Subject: Re: bash/cmd CTRL-C problem...
Date: Mon, 07 Jan 2002 02:56:00 -0000	[thread overview]
Message-ID: <017b01c1976a$21451e70$c51811ac@brokat.de> (raw)
In-Reply-To: <000f01c19766$549cb8e0$0200a8c0@lifelesswks>

> Yes, that is what I meant.
>
> > bash (cygwin, of course)
> > app1 = "signals (MS CRT)"
> > app2 = "myclass.exe (MS CRT)" or "java myclass (???)"
>
> Lets leave java to the side. If we solve it with MS CRT, and java apps
> still have problems, then that becomes a new bug. Why? because there are
> multiple JVM's to consider, making it harder to setup a test
> environment. And because I suspect that a solution to one will solve the
> other.

OK, no problem. Java processes are created and they can be taken down by
sending them CTRL-BREAK signals (You need to start the Sun VM with
parameter -Xrs to make this work, otherwise you will just see a thread dump
because the standard VM establishes a SIGBREAK handler which prints stack
dumps of all running threads)

> > > By this are you implying that this:
> > > cmd.exe
> > > app1 (cygwin/MS CRT (see above))
> > > app2 (MS CRT)
> > > behaves as you expect?
> >
> > cmd.exe
> > bash (cygwin, of course)
> > app1="signals (MS CRT)"     app1
> > app2="myclass.exe (MS CRT)" or "java myclass (???)"
> >
> > yes here the behaviour is correct !! When pressing CTRL-C the
> execution
> > continues after handling the signal. The child apps are taken down by
> > sending a CTRL-BREAK event.
>
> Ok. let me confirm I understand everything.
>
> * Failure case *
> 1) double click on a shortcut to cygwin.bat from a default install of
> cygwin
> 2) run ./signals.exe
> 3) ./myclass.exe is automatically executed (BTW: this is not fork()  -
> fork() requires a cygwin linked signals.exe. In unix terms, this is a
> spawned program.
> 4) Hit CTRL-C.
> 5) The user is returned to the bash shell started via 1), but
> myclass.exe is left running.
>
> * success case *
> 1) double click on a shortcut to cmd.exe
> 2) run X:\cygwin\cygwin.bat

No. I do not run cygwin.bat ! It is just pure cmd.exe !!!

> 3) run ./signals.exe
> 4) ./myclass.exe is automatically executed (BTW: this is not fork()  -
> fork() requires a cygwin linked signals.exe. In unix terms, this is a
> spawned program.

OK, myclass.exe is spawned program...

> 5) Hit CTRL-C.
> 6) The user is returned to the bash shell started via 2), and
> myclass.exe is terminated correctly.

The user is returned to the cmd.exe shell started via 1) and myclass.exe is
terminated correctly.

> Please edit the above as needed to correctly show the actions taken and
> the expected outcome, to prevent me erroneously reporting no-fault-found
> or no-success-found etc.
>
> > Great, the attachment of one of my previous mails should give you a
> > repeatable test case at hand. It includes the signals.cpp (app1),
> > myclass.cpp/myclass.java (app2) and a Makefile to compile it (the
> makefile
> > needs some updates to the paths used there). You don't have to compile
> the
> > Java class just compile the C/C++ apps and launch "signals cpp" which
> > results in forking the C/C++ child app myclass.exe.
>
> I've not archived those mails. Can you please send me (as an off-list
> email, separate to your on-list response) the relevant files. I presume
> they will build with gcc -mno-cygwin ? (If Visual C++ is required to
> build them, please provide a .exe).

I have no Makefile for compiling the test case with gcc at hand. The general
opinion here at my company is that the code generated by gcc is too slow. So
we are using the native compilers under the different platforms. The
decision to use the native compilers has been made a few years ago and I
guess a lot has changed since then, but we have decided last year to move to
Java and so adapting everything to gcc would be a one year effort which
nobody wants to invest because we have finally decided to move to Java
completely. This is also not a single step task and until that has not been
achieved many of the building blocks, like the app server launcher, remains
in C++

AIX -> xlC_r
NT/IA64 -> cl.exe
Linux -> GCC
HPUX -> aCC
Solaris -> CC

Michael



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

  reply	other threads:[~2002-01-07 10:56 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-19 23:48 Michael Rumpf
2001-12-20  1:28 ` Michael Rumpf
2001-12-21  2:17   ` Michael Rumpf
2001-12-21  7:27     ` Corinna Vinschen
2001-12-21  8:46       ` Michael Rumpf
2002-01-04  3:51     ` Michael Rumpf
2002-01-04  9:04       ` Christopher Faylor
2002-01-07  0:46         ` Michael Rumpf
2002-01-07  1:10           ` Robert Collins
2002-01-07  1:58             ` Michael Rumpf
2002-01-07  2:30               ` Robert Collins
2002-01-07  2:56                 ` Michael Rumpf [this message]
2002-01-07  5:15                   ` CGF: please review my logic " Robert Collins
2002-01-07  6:18                     ` Michael Rumpf
2002-01-07  8:50                     ` CGF: " Christopher Faylor
2002-01-07 15:00                       ` Robert Collins
2002-01-07 15:45                         ` Christopher Faylor
2002-01-07 16:15                           ` Robert Collins
2002-01-07 16:21                             ` Christopher Faylor
2002-01-07 16:43                               ` Robert Collins
2002-01-07 23:00                                 ` Robert Collins
2002-01-08  8:19                                   ` Christopher Faylor
2002-01-08 14:16                                     ` Robert Collins
2002-01-08 16:39                                       ` Christopher Faylor
2002-01-08 16:43                                         ` Robert Collins
2002-01-08 16:55                                           ` Christopher Faylor
2002-01-08 16:57                                             ` Robert Collins
2002-01-08 17:13                                               ` Christopher Faylor
2002-01-08 17:16                                                 ` Robert Collins
2002-01-09 18:46                                                   ` Christopher Faylor
2002-01-09 19:42                                                     ` Christopher Faylor
2002-01-09 23:59                                                     ` Robert Collins
2002-01-10  7:53                                                       ` Christopher Faylor
2002-01-08 17:46                                                 ` Charles Wilson
     [not found]                                   ` <027401c19855$68842f60$c51811ac@brokat.de>
     [not found]                                     ` <03a901c1989b$69c8e190$0200a8c0@lifelesswks>
2002-01-09  0:14                                       ` Michael Rumpf
2002-01-07  8:09 Gregory W. Bond
2002-01-07  8:27 ` Michael Rumpf
2002-01-07  9:06   ` Gregory W. Bond
2002-01-07  9:18     ` Michael Rumpf
2002-01-07  9:32     ` Christopher Faylor
2002-01-07  9:28 Gregory W. Bond
2002-01-07 10:07 ` Christopher Faylor
2002-01-07 12:14   ` Gregory W. Bond
     [not found] <3C3E059B.2080401@ece.gatech.edu>
2002-01-11  4:01 ` Andy Piper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='017b01c1976a$21451e70$c51811ac@brokat.de' \
    --to=michael@rumpfonline.de \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).