all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* RE: [rms@gnu.org: Re: [twurgler@goodyear.com: emacs-21.2.90 on HP 11.0]]
@ 2002-07-16 14:11 WAROQUIERS Philippe
  0 siblings, 0 replies; 15+ messages in thread
From: WAROQUIERS Philippe @ 2002-07-16 14:11 UTC (permalink / raw)
  Cc: WAROQUIERS Philippe, VAN VLIERBERGHE Stef, WAROQUIERS Philippe,
	emacs-devel

> Results:  1) I can now abort a running job in a shell fine.
>           2) (sleep-for 3) still never comes back.
>           3) Cursor doesn't blink and still goes away until you touch a
key.

It is normal that sleep-for still does not come back because the problem
of sleep-for is unrelated to the problem in process.c.
To solve sleep-for problem, another change is needed (which is to avoid
using
SA_RESTART in file sysdep.c function sys_signal). I would think that the
problem
3 is also solved by not using SA_RESTART.

^ permalink raw reply	[flat|nested] 15+ messages in thread
* RE: [rms@gnu.org: Re: [twurgler@goodyear.com: emacs-21.2.90 on HP 11.0]]
@ 2002-07-17 10:46 WAROQUIERS Philippe
  2002-07-17 13:47 ` Tom Wurgler
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: WAROQUIERS Philippe @ 2002-07-17 10:46 UTC (permalink / raw)
  Cc: WAROQUIERS Philippe, VAN VLIERBERGHE Stef, emacs-devel, bruce


     Results:  1) I can now abort a running job in a shell fine.
     	      2) (sleep-for 3) still never comes back.
	      3) Cursor doesn't blink and still goes away until you touch a
key.
    Thanks for all your efforts.

  It looks like there is still work to be done.
  Bruce, can you find an HPUX developer who can help us
  solve these Emacs problems?

Maybe you have not seen the previous mail I send.
There are 2 problems that were investigated and solved.
One results in a simple patch in sysdep.c (avoid using SA_RESTART).
The other one is the patch in process.c (by the way, I confirm the
final patch you have send is working).

If *both* patches are applied and POSIX_SIGNALS is defined,
all the problems above are disappearing.
In other words:
   (while t)       is interrupted by C-g
   (sleep-for 3)   really sleeps 3 seconds
   abort running job in shell works (both with C-c C-c and with Signal ->
Break)

As far as I can see, Tom has tested with only the process.c patch installed.
This patch only fixes the job abort. The other patch (SA_RESTART) is needed 
to solve the problems 2 and 3 above.

Thanks for the work on all this ...

^ permalink raw reply	[flat|nested] 15+ messages in thread
* RE: [rms@gnu.org: Re: [twurgler@goodyear.com: emacs-21.2.90 on HP 11.0]]
@ 2002-07-15 10:42 WAROQUIERS Philippe
  2002-07-16 13:29 ` Richard Stallman
  0 siblings, 1 reply; 15+ messages in thread
From: WAROQUIERS Philippe @ 2002-07-15 10:42 UTC (permalink / raw)
  Cc: WAROQUIERS Philippe, twurgler, emacs-devel

    !!!  if (inchannel >= 0)
	{
    #ifndef USG 
	  /* On USG systems it does not work to open the pty's tty here
		   and then close and reopen it in the child.  */

  What happens if you change USG to 0 in that conditional?
  Does subtty get set up properly?  Does everything work after that?

I suppose that what you wanted is to execute the code inside the #ifndef
so I have replaced
#ifndef USG
by
#ifndef THIS_IS_NOT_DEFINED
(replaced USG by 0 was giving a compilation error).

After this, the following works properly:
M-x shell
cat
C-c C-c
(or Signals -> Break)
Note however that it is still needed to initialise int gid = 1;
in process_send_signal to have C-c C-c killing the cat. If I remove
the initialisation of int gid; then C-c C-c does not work while
Signals -> Break works.


  Also, independent of that, if you take away the #if 0 that currently
  surrounds these two lines, and make them unconditional,

	if (err == -1)
	  gid = - XFASTINT (p->pid);

  does that fix the problem?
(NB: in emacs-21.2, it is not #if 0 
but #ifdef pfa).

Yes, it also fixes the problem. But I think this is just another way to put
any value in gid which makes the rest of the code work.
If I put gid = 12345; it works as good as if I put  gid = - XFASTINT
(p->pid)
The ioctl TIOCPGRP still fails (err = -1, errno= 25 ENOTTY).
But any value in gid is ok because when TIOCSIGSEND is defined, gid is only
used afterwards to compare to -1.
After, when TIOCSIGSEND is defined and current_group is not nil, gid is 
unused to send the signal.

^ permalink raw reply	[flat|nested] 15+ messages in thread
[parent not found: <5983E4DAC939D311B2F20008C7E62E7A075D2365@clsh01xch.office.cfmu.eurocontrol.be>]

end of thread, other threads:[~2002-07-19 21:11 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-16 14:11 [rms@gnu.org: Re: [twurgler@goodyear.com: emacs-21.2.90 on HP 11.0]] WAROQUIERS Philippe
  -- strict thread matches above, loose matches on Subject: below --
2002-07-17 10:46 WAROQUIERS Philippe
2002-07-17 13:47 ` Tom Wurgler
2002-07-18 14:55   ` Richard Stallman
2002-07-17 18:39 ` Tom Wurgler
2002-07-18 14:55 ` Richard Stallman
2002-07-19 13:37   ` Tom Wurgler
2002-07-19 21:11     ` Stef Van Vlierberghe
2002-07-15 10:42 WAROQUIERS Philippe
2002-07-16 13:29 ` Richard Stallman
2002-07-16 13:49   ` Tom Wurgler
2002-07-17  3:03     ` Richard Stallman
     [not found] <5983E4DAC939D311B2F20008C7E62E7A075D2365@clsh01xch.office.cfmu.eurocontrol.be>
2002-07-12 11:12 ` Richard Stallman
2002-07-12 21:52   ` Stef Van Vlierberghe
2002-07-13 14:20     ` Richard Stallman

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.