debuild returns 0 on SIGINT

Bug #708584 reported by eraserix
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
devscripts (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: devscripts

I call debuild inside another shell script. Most of the time in the whole script is spent in dpkg-buildpackage, called by debuild. Now if I hit ctrl+c to SIGINT the build, it stops. However, debuild happens to ignore the return value of dpkg-buildpackage in case it was terminated by a signal. The following function is responsible (around line 1337 in /usr/bin/debuild):

sub system_withecho(@) {
    print STDERR " ", join(" ", @_), "\n";
    system(@_);
    if ($?>>8) {
 fatal "@_ failed";
    }
}

Why is the condition for terminating bitshifted, and not just != 0?

I'm using devscripts 2.10.61ubuntu5 on lucid.

Revision history for this message
Maarten Bezemer (veger) wrote :

Such a question should be asked at the developers of the devscript package/debuild application.
I would assume they have a reason for it, but maybe it is 'legacy' code and it should be cleaned...?

See https://wiki.ubuntu.com/Debian/Bugs for more information on contacting the Debian package developers. (Although I am not 100% certain that this is the preferred way of contacting them...)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.