Bug#628992: cupt: cannot be resumed with job control (unable to receive socket message length: Interrupted system call)

June 02nd, 2011 - 04:30 pm ET by Jonathan Nieder | Report spam
Package: cupt
Version: 2.1.0

Hi,

Typical amd64 experimental system. Today "cupt update" was taking a
long time, so I wanted to suspend it, put it in the background, and do
something else.

So I hit ^Z. Unfortunately a part of cupt seemed to continue running,
updating the download progress information:

| $ cupt update
| E: a syntax error: expected: semicolon (';') before 'Dir::Media::MountPath "/media/cdrom";
| '
| E: unable to parse config file '//etc/apt/apt.conf.d/00CDMountPoint'
| W: skipped configuration file '//etc/apt/apt.conf.d/00CDMountPoint'
| Get:1 http://mirrors.kernel.org/debian squeeze-proposed-updates Release
| Get:2 http://security.debian.org squeeze/updates Release
| Get:3 http://mirrors.kernel.org/debian squeeze Release
| ^Z0% [1 squeeze-proposed-updates Release 0B][3 squeeze Release 0B] | 0B/s | ETA: 0s
| [1]+ Stopped cupt update
| 100% [1 squeeze-proposed-updates Release 0B][3 squeeze Release 0B] | 0B/s | ETA: 0s
| 100% [1 squeeze-proposed-updates Release 0B][3 squeeze Release 0B] | 0B/s | ETA: 0s

Then I ran "fg" to resume.

| g00% [1 squeeze-proposed-updates Release 0B][3 squeeze Release 0B] | 0B/s | ETA: 0s
| cupt update
| E: unable to receive socket message length: Interrupted system call
| E: unable to receive socket message length: Interrupted system call
| E: unable to receive socket message length: Interrupted system call
| E: unable to receive socket message length: Interrupted system call
| E: unable to receive socket message length: Interrupted system call
| E: unable to receive socket message length: Interrupted system call
| E: unable to receive socket message length: Interrupted system call
| E: unable to receive socket message length: Interrupted system call
| E: unable to receive socket message length: Interrupted system call
| E: unable to receive socket message length: Interrupted system call
| Fetched 37.5KiB in 28s.
| E: there were errors while downloading release and index data
| E: error performing command 'update'

Probably there is a missing

if (errno == EINTR)
continue;

somewhere. Anyway, thought you might like to know.

Regards,
Jonathan



To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
email Follow the discussionReplies 2 repliesReplies Make a reply

Replies

#1 Eugene V. Lyubimkin
June 04th, 2011 - 11:00 am ET | Report spam
clone 628992 -1
retitle -1 cupt: downloader process is not stopped by shell
tags 628992 + confirmed pending
tags -1 + confirmed
quit

Hi,

On 2011-06-02 15:24, Jonathan Nieder wrote:
So I hit ^Z. Unfortunately a part of cupt seemed to continue running,
updating the download progress information:



Ok, this is a separate issue, cloned the bug.

| E: unable to receive socket message length: Interrupted system call


[...]
if (errno == EINTR)
continue;



Well, not quite a Cupt bug, but I worked around it anyway (see commit
21c589bc).

Eugene V. Lyubimkin aka JackYF, JID: jackyf.devel(maildog)gmail.com
C++/Perl developer, Debian Developer



To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact

Similar topics