Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Nov 1997 15:34:00 -0800 (PST)
From:      "Andrey A. Chernov" <ache@FreeBSD.ORG>
To:        cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-bin@FreeBSD.ORG
Subject:   cvs commit: src/bin/sh trap.c
Message-ID:  <199711052334.PAA07555@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
ache        1997/11/05 15:34:00 PST

  Modified files:
    bin/sh               trap.c 
  Log:
  1) Fix longstanding bug:
  	trap 'echo xxx' 1 2 3 15
  	read x
  is not interrupted by ^C (due to restartable read syscall) and must be
  interrupted per POSIX
  Worse case:
  	read -t 5 x
  hangs forever after ^C pressed (supposed to timeout after 5 secs)
  Fixed by adding siginterrupt(signo, 1) after catch handler installed
  
  2) Do not reinstall sighandler immediately after it is called,
  BSD do it for us
  
  Revision  Changes    Path
  1.9       +10 -3     src/bin/sh/trap.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199711052334.PAA07555>