mirror of
https://github.com/polybar/polybar.git
synced 2024-11-03 04:33:30 -05:00
5f6d73a415
Ref #214
26 lines
653 B
C++
26 lines
653 B
C++
#pragma once
|
|
|
|
#include "common.hpp"
|
|
|
|
POLYBAR_NS
|
|
|
|
namespace process_util {
|
|
bool in_parent_process(pid_t pid);
|
|
bool in_forked_process(pid_t pid);
|
|
|
|
void exec(char* cmd, char** args);
|
|
void exec_sh(const char* cmd);
|
|
|
|
pid_t wait_for_completion(pid_t process_id, int* status_addr, int waitflags = 0);
|
|
pid_t wait_for_completion(int* status_addr, int waitflags = 0);
|
|
pid_t wait_for_completion(pid_t process_id);
|
|
pid_t wait_for_completion_nohang(pid_t process_id, int* status);
|
|
pid_t wait_for_completion_nohang(int* status);
|
|
pid_t wait_for_completion_nohang();
|
|
|
|
bool notify_childprocess();
|
|
|
|
void unblock_signal(int sig);
|
|
}
|
|
|
|
POLYBAR_NS_END
|