Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Nov 1996 20:31:54 +0800 (WST)
From:      Peter Wemm <peter@spinner.DIALix.COM>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/1990: 'make fetch' broken in recent sh/make changes
Message-ID:  <199611101231.UAA13146@spinner.DIALix.COM>
Resent-Message-ID: <199611101240.EAA05631@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         1990
>Category:       bin
>Synopsis:       'make fetch' broken in recent sh/make changes
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 10 04:40:01 PST 1996
>Last-Modified:
>Originator:     Peter Wemm
>Organization:
>Release:        FreeBSD 3.0-CURRENT i386
>Environment:

'make world' a few hours ago, not yet rebooted.  kernel is:
FreeBSD spinner.DIALix.COM 3.0-CURRENT FreeBSD 3.0-CURRENT #156: Wed Nov  6 00:44:55 WST 1996     peter@spinner.DIALix.COM:/home/src/sys/compile/SPINNER  i386

>Description:

The 'fetch' stage of ports does not abort on ^C any more, causing the fetch
stage to continue on running in the background after a deliberate interrupt
attempt.

>How-To-Repeat:

peter@spinner[8:13pm]~ports/net/cvsup-235> make fetch
>Fix:
	
I don't know, but I am suspicious of the recent change to /bin/sh
where the handling of SIGINT was changed with the 'sh -c' command to
help things like system() in crontab etc.

As you can see, the 'sh -ec (..)' continued on running after the SIGINT
without aborting the for loop.  The currently running 'fetch' got the signal
and died, the sh -ec for loop started another in the background.

>Audit-Trail:
>Unformatted:
>> cvsup-13.5.tar.gz doesn't seem to exist on this system.
>> Attempting to fetch from ftp://freefall.freebsd.org/pub/CVSup/.
^Cfetch: Interrupted by signal 2
>> Attempting to fetch from ftp://ftp.freebsd.org/pub/FreeBSD/distfiles//.
peter@spinner[8:13pm]~ports/net/cvsup-236> ps
Receiving cvsup-13.5.tar.gz (168573 bytes)
  PID  TT  STAT      TIME COMMAND
 1744  p8  Is     0:00.48 -tcsh (tcsh)
 1745  p9  Is     0:00.54 -tcsh (tcsh)
[..]
 1996  pu  Ss     0:02.71 -tcsh (tcsh)
13022  pu  S      0:00.04 /bin/sh -ec (cd /usr/ports/distfiles/;  for file in c
13028  pu  S      0:00.14 /usr/bin/fetch ftp://ftp.freebsd.org/pub/FreeBSD/dist
13029  pu  R+     0:00.03 ps
[..]
  236  v3  Is+    0:00.53 -tcsh (tcsh)
Receiving cvsup-13.5.tar.gz (168573 bytes): 100%
168573 bytes transfered in 58.2 seconds  (2.83 K/s)

peter@spinner[8:15pm]~ports/net/cvsup-237> 




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