OSDN Git Service

Don't crash when the /proc/<pid>/stat file failed to open.
authorThiago Macieira <thiago.macieira@nokia.com>
Fri, 7 Aug 2009 11:01:33 +0000 (13:01 +0200)
committerThiago Macieira <thiago.macieira@nokia.com>
Fri, 7 Aug 2009 11:30:35 +0000 (13:30 +0200)
commit50fb8bfb033dadb90084f7a3b5bbddec4e5dd1a1
tree2c955b0ab19a781e87a673f7f2f5c342981cacf2
parentbd660f9b69371d8beab5d99c315fc63818f60b73
Don't crash when the /proc/<pid>/stat file failed to open.

This may happen if a process exits after we got the /proc listing. If
we fail to open the file, readAll() returns empty, which means split()
returns an empty list, which means you can't do at(1).
src/plugins/debugger/debuggerdialogs.cpp