[Development] magic number 0xf291

Thiago Macieira thiago.macieira at intel.com
Fri Mar 1 16:53:25 CET 2013


On sexta-feira, 1 de março de 2013 16.43.35, Joerg Bornemann wrote:
> In qprocess_win.cpp there's this code for determining if the child
> process crashed or not.
> 
> //### for now we assume a crash if exit code is less than -1 or the
> magic number
> crashed = (exitCode == 0xf291 || (int)exitCode < 0);
> 
> Does anybody have an idea where this magic number 0xf291 comes from?
> I cannot find it anywhere in the Windows headers. Neither can I produce
> a crashing application that returns this code.
> 
> Hint: it is not the exit code for unsatisfied DLL dependencies.
> That's STATUS_DLL_NOT_FOUND.

The value reappears:

void QProcessPrivate::killProcess()
{
    if (pid)
        TerminateProcess(pid->hProcess, 0xf291);
}

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130301/ef4d8d66/attachment.sig>


More information about the Development mailing list