Here's a transcript of a strace of base-installer as it finishes running
debootstrap just before it displays the error message:

read(0, "0 Base system installed successf"...,4096) = 38
waitpid(16112, [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0} = 16112
--- SIGCHLD (Child exited) @ 0 (0) ---
sigreturn()                             = ? (mask now [])

So it's doing a waitpid before the child exits; it's not clear to me if
the waitpid is in fact waiting until the child exits or not from this
strace. Of course, it should, wait, but something wird is going on. The
WIFEXITED flag suggests it did, the SIGCHLD handler firing afterwards
suggests maybe not.

Anyway, the WEXITSTATUS is 1 and that's why it displays the dialog.

Note that run-debootstrap does trap SIGCHLD and its handler is still
operational when it calls waitpid. 

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature

Reply via email to