This is the mail archive of the cygwin@sources.redhat.com 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]

Re: NTEmacs shell/CygWin: should control-C work?


"David M. Karr" wrote:
> 
....
> I don't know the full answer to that.  For me, certain shell processes
> will die with ^C, some will not.  I can kill "java", but I can't kill
> "tail -f" or "perl" (I have to use Task Manager).  I have seen other
> people report this.

Hmm.  I think I've seen Java behave differently, but in the opposite
direction.  On my _old_ setup (Emacs ? with CygWin 20 or so), java (Sun's) 
would sometimes print out some status dump when I tried a control-C.  
I think Java specifically catches an alternate signal (SIGQUIT? on Unix,
something else on Windows) to do that.

Maybe Emacs and/or CygWin are sending different signals at different 
times or under different configurations, or processes are vulnerable
to different signals under different conditions.


AAAAGGGGHHHH!!   Reinstalling a machine's worth of software is bad
enough without failures between critical areas (for me) like Emacs and 
Unix commands.


Could someone who has Emacs C-c C-c working working post information 
about your configuration OS version, NTEmacs version, relevant .emacs 
contents, whatever version information now characterizes CygWin, relevant 
cygwin.bat contents, environment variables, etc.)?

Here are my statistics:

- Windows NT 4.0, service pack 6a

- NT Emacs version:
  "GNU Emacs 20.7.1 (i386-*-nt4.0.1381) of Tue Jun 13 2000 on buffy"

- HOME:
  bash-2.04$ echo $HOME
  /c/Daniel

- $HOME/.emacs (excerpts):
  
  ...
  (setq exec-path (cons "C:/tools/cygwin/bin" exec-path))
  (setenv "PATH" (concat "C:\\tools\\cygwin\\bin;" (getenv "PATH")))
  
  ;;TRYING:
  (setenv "CYGWIN" (concat "tty " (getenv "CYGWIN")))

  (setq process-coding-system-alist '(("bash" . undecided-unix)))
  (setq w32-quote-process-args ?\")
  (setq shell-file-name "bash")
  (setenv "SHELL" shell-file-name) 
  (setq explicit-shell-file-name shell-file-name) 

  (add-hook 'comint-output-filter-functions
            'comint-strip-ctrl-m)
  ...
  
- C:/tools/cygwin/cygwin.bat:
  @echo off
  
  set CYGWIN=tty
  
  C:
  chdir \tools\cygwin\bin
  
  bash --login -i

- cygcheck:

  $ cygcheck  -s
  
  Cygnus Win95/NT Configuration Diagnostics
  Current System Time: Fri Jan 12 16:03:28 2001
  
  WinNT Ver 4.0 build 1381 Service Pack 6
  
  Path:	/usr/bin
  	/c/WINNT/system32
  	/c/WINNT
  
  SysDir: C:\WINNT\System32
  WinDir: C:\WINNT
  
  PWD = `/c/tools/emacs-20.7/bin'
  CYGWIN = `tty '
  HOME = `/c/Daniel'
  
  Use `-r' to scan registry
  
  a:  fd           N/A    N/A                    
  c:  hd  NTFS    4094Mb  53% CP CS UN PA FC     C
  d:  hd  NTFS    1592Mb  99% CP CS UN PA FC     D
  e:  hd  NTFS    4094Mb  85% CP CS UN PA FC     E
  f:  cd           N/A    N/A                    
  
  C:\tools\cygwin\bin  /usr/bin  system  textmode
  C:\tools\cygwin\lib  /usr/lib  system  textmode
  C:\tools\cygwin  /        system  textmode
  C:    /c       user    textmode
  D:    /d       user    textmode
  E:    /e       user    textmode
  
  Found: C:\tools\cygwin\bin\bash.exe
  Found: C:\tools\cygwin\bin\cat.exe
  Found: C:\tools\cygwin\bin\cpp.exe
  Found: C:\tools\cygwin\bin\find.exe
  Found: C:\tools\cygwin\bin\gcc.exe
  Found: C:\tools\cygwin\bin\gdb.exe
  Found: C:\tools\cygwin\bin\ld.exe
  Found: C:\tools\cygwin\bin\ls.exe
  Found: C:\tools\cygwin\bin\make.exe
  Found: C:\tools\cygwin\bin\sh.exe
  
     56k 2000/12/03 C:\tools\cygwin\bin\cygbz21.0.dll
     45k 2000/12/07 C:\tools\cygwin\bin\cygform5.dll
     18k 2000/10/23 C:\tools\cygwin\bin\cyggdbm.dll
     17k 2001/01/07 C:\tools\cygwin\bin\cyghistory4.dll
     14k 2000/10/23 C:\tools\cygwin\bin\cygintl.dll
     81k 2000/12/05 C:\tools\cygwin\bin\cygitcl30.dll
     35k 2000/12/05 C:\tools\cygwin\bin\cygitk30.dll
     45k 2000/10/22 C:\tools\cygwin\bin\cygjbig1.dll
    119k 2000/10/23 C:\tools\cygwin\bin\cygjpeg6b.dll
     26k 2000/12/07 C:\tools\cygwin\bin\cygmenu5.dll
    159k 2000/12/07 C:\tools\cygwin\bin\cygncurses++5.dll
    225k 2000/12/07 C:\tools\cygwin\bin\cygncurses5.dll
     15k 2000/12/07 C:\tools\cygwin\bin\cygpanel5.dll
    162k 2000/10/23 C:\tools\cygwin\bin\cygpng2.dll
    108k 2001/01/07 C:\tools\cygwin\bin\cygreadline4.dll
    390k 2000/12/05 C:\tools\cygwin\bin\cygtcl80.dll
      5k 2000/12/05 C:\tools\cygwin\bin\cygtclpip80.dll
     10k 2000/12/05 C:\tools\cygwin\bin\cygtclreg80.dll
    243k 2000/10/23 C:\tools\cygwin\bin\cygtiff3.dll
    623k 2000/12/05 C:\tools\cygwin\bin\cygtk80.dll
     41k 2000/11/20 C:\tools\cygwin\bin\cygXpm-noX4.dll
     45k 2000/11/20 C:\tools\cygwin\bin\cygXpm-X4.dll
     49k 2000/10/23 C:\tools\cygwin\bin\cygz.dll
    611k 2000/12/25 C:\tools\cygwin\bin\cygwin1.dll
      Cygwin DLL version info:
          dll major: 1001
          dll minor: 7
          dll epoch: 19
          dll bad signal mask: 19005
          dll old termios: 5
          dll malloc env: 28
          api major: 0
          api minor: 31
          shared data: 3
          dll identifier: cygwin1
          mount registry: 2
          cygnus registry name: Cygnus Solutions
          cygwin registry name: Cygwin
          program options name: Program Options
          cygwin mount registry name: mounts v2
          cygdrive flags: cygdrive flags
          cygdrive prefix: cygdrive prefix
          cygdrive default prefix: 
          build date: Mon Dec 25 12:39:48 EST 2000
          shared id: cygwin1S3
  
  Use -h to see help about each section
  $ 




Daniel
-- 
Daniel Barclay
Digital Focus
Daniel.Barclay@digitalfocus.com

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


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