1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2024-10-27 05:23:39 -04:00
polybar/include/utils/process.hpp

26 lines
614 B
C++
Raw Normal View History

2016-06-14 23:32:35 -04:00
#pragma once
#include "common.hpp"
LEMONBUDDY_NS
namespace process_util {
2016-11-02 15:22:45 -04:00
bool in_parent_process(pid_t pid);
bool in_forked_process(pid_t pid);
2016-06-14 23:32:35 -04:00
2016-11-02 15:22:45 -04:00
void exec(string cmd);
2016-06-14 23:32:35 -04:00
2016-11-02 15:22:45 -04:00
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();
2016-06-14 23:32:35 -04:00
2016-11-02 15:22:45 -04:00
bool notify_childprocess();
2016-11-02 15:22:45 -04:00
void unblock_signal(int sig);
2016-06-14 23:32:35 -04:00
}
LEMONBUDDY_NS_END