Check for existence of the ExtraScript 95/239995/2
authorKarol Lewandowski <k.lewandowsk@samsung.com>
Fri, 31 Jul 2020 10:03:07 +0000 (12:03 +0200)
committerKarol Lewandowski <k.lewandowsk@samsung.com>
Fri, 31 Jul 2020 10:04:56 +0000 (12:04 +0200)
commit45549af44e438f1abacbaf649deb9ab1695d6c9e
treed987901cf9ba71b3b738fcc17ac02087ed17d43b
parentcb4ccd7b32f5849016d158fc9bc592a979708006
Check for existence of the ExtraScript

In the case where ExtraScript points to non-existent script, the crash worker
will create child process which will remain zombie until it's reaped.  The
reaping is handled after dump_systemstate finishes.  This will cause zombie
process to exist for duration of dump_systemstate execution.

This change prevents creating child process if ExtraScripts points to path
which is not executable.

Change-Id: I4caba47812b6990e9b5b54fe9929930cc667f4eb
src/crash-manager/crash-manager.c