Re: [PATCH weston] compositor: do clean-up on init failure

2012-07-30 Thread Kristian Høgsberg
On Mon, Jul 30, 2012 at 04:56:57PM +0300, Pekka Paalanen wrote: > Simply exit(1)'ing the program will leave the VT unusable, since > DRM backend's clean-up does not run. > > After a backend has been initialised, prefer jumping to clean-up instead > of directly exiting. > > This fixes the case whe

[PATCH weston] compositor: do clean-up on init failure

2012-07-30 Thread Pekka Paalanen
Simply exit(1)'ing the program will leave the VT unusable, since DRM backend's clean-up does not run. After a backend has been initialised, prefer jumping to clean-up instead of directly exiting. This fixes the case where 'weston-launch -- -i 5' would leave the console unusable. Signed-off-by: P