kranewl

A wlroots-based dynamic Wayland compositor, written in C++, configurable with Lua
git clone git://git.deurzen.net/kranewl
Log | Files | Refs | LICENSE

commit c0ade447983937d6027ba2813a7a78aa4d9c7171
parent 92e14c4492f1f942c6147307113f49d971deaf2d
Author: deurzen <max@deurzen.net>
Date:   Wed,  1 Jun 2022 12:17:09 +0200

reformats code

Diffstat:
Minclude/kranewl/exec.hh | 2+-
Msrc/kranewl/exec.cc | 10+++++++---
2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/include/kranewl/exec.hh b/include/kranewl/exec.hh @@ -2,4 +2,4 @@ #include <string> -void exec_external(std::string& command); +void exec_external(std::string const&); diff --git a/src/kranewl/exec.cc b/src/kranewl/exec.cc @@ -1,11 +1,15 @@ -#include <cstdlib> -#include <string> +#include <kranewl/exec.hh> + extern "C" { #include <unistd.h> } +#include <cstdlib> +#include <string> + void -exec_external(std::string& command) { +exec_external(std::string const& command) +{ if (!fork()) { dup2(STDERR_FILENO, STDOUT_FILENO); setsid();