diff options
| author | Devin J. Pohly <djpohly@gmail.com> | 2020-06-07 11:42:43 -0500 | 
|---|---|---|
| committer | Devin J. Pohly <djpohly@gmail.com> | 2020-06-07 11:42:43 -0500 | 
| commit | f19d00b94a6ba56ba4e2ca72b56a6d0345bed7d9 (patch) | |
| tree | f027d588a30f0c0b84bbe019a256986935ddd471 | |
| parent | Add startup errors, mention XDG_RUNTIME_DIR in README (diff) | |
| download | dwl-f19d00b94a6ba56ba4e2ca72b56a6d0345bed7d9.tar.gz dwl-f19d00b94a6ba56ba4e2ca72b56a6d0345bed7d9.tar.bz2 dwl-f19d00b94a6ba56ba4e2ca72b56a6d0345bed7d9.tar.xz dwl-f19d00b94a6ba56ba4e2ca72b56a6d0345bed7d9.tar.zst dwl-f19d00b94a6ba56ba4e2ca72b56a6d0345bed7d9.zip  | |
move perrors earlier
Should come right after the erroring call so nothing else has a chance
to overwrite errno
Diffstat (limited to '')
| -rw-r--r-- | dwl.c | 4 | 
1 files changed, 2 insertions, 2 deletions
@@ -1073,17 +1073,17 @@ run(char *startup_cmd)  	/* Add a Unix socket to the Wayland display. */  	const char *socket = wl_display_add_socket_auto(dpy);  	if (!socket) { +		perror("startup: display_add_socket_auto");  		wlr_backend_destroy(backend); -		perror("startup: socket");  		exit(EXIT_FAILURE);  	}  	/* Start the backend. This will enumerate outputs and inputs, become the DRM  	 * master, etc */  	if (!wlr_backend_start(backend)) { +		perror("startup: backend_start");  		wlr_backend_destroy(backend);  		wl_display_destroy(dpy); -		perror("startup: backend_start");  		exit(EXIT_FAILURE);  	}  | 
