commit ef197048827fd9c2a07aa6779ac3f90d3498bc6f from: Caleb Stein date: Mon Jun 1 18:40:56 2026 UTC name child processes commit - c9b5e794e4a1455fe3ead85670b45c65e72fe873 commit + ef197048827fd9c2a07aa6779ac3f90d3498bc6f blob - d88a1e429c79a4fe86b55d0d4e52d4e20b54f6c6 blob + 6583323eb3f3302da0ba1240c90a94a1aba4ed18 --- include/statbar.h +++ include/statbar.h @@ -42,12 +42,12 @@ extern void normalize_clock_interval(const struct time /* Battery */ #define BATTERY_STRING_SIZE 11 -extern pid_t start_privileged_battery_process(int *pipe_fd, const struct timespec *timeout); +extern pid_t start_privileged_battery_process(int *pipe_fd, const struct timespec *timeout, char *prname); /* Volume */ #define VOLUME_STRING_SIZE 11 -extern pid_t start_volume_process(int *pipe_fd); +extern pid_t start_volume_process(int *pipe_fd, char *prname); /* CPU Temp */ extern char cputemp_string[14]; blob - cca570e33bc9f05ccbc1440383429a08eb021727 blob + c4b48683995918694d0a213703da1fc2a3cb2912 --- modules/battery.c +++ modules/battery.c @@ -62,7 +62,7 @@ signal_handler(int sig) } pid_t -start_privileged_battery_process(int *pipe_fd, const struct timespec *timeout) +start_privileged_battery_process(int *pipe_fd, const struct timespec *timeout, char *prname) { pid_t pid; int batt_pipe[2]; @@ -86,6 +86,7 @@ start_privileged_battery_process(int *pipe_fd, const s if (init_battery() == -1) _exit(-1); (void)close(batt_pipe[0]); + (void)strcpy(prname, "sb-batt"); (void)puts("Battery process started"); (void)signal(SIGTERM, signal_handler); blob - 4f7843bb78a4141565fd3bba8b1d66807067d887 blob + 4f9f0aac4768497625d90fe2f355a3f46939de20 --- modules/volume.c +++ modules/volume.c @@ -78,7 +78,7 @@ signal_handler(int sig) } pid_t -start_volume_process(int *pipe_fd) +start_volume_process(int *pipe_fd, char *prname) { pid_t pid; int vol_pipe[2]; @@ -112,6 +112,7 @@ start_volume_process(int *pipe_fd) } if (init_volume(&nfds, &vol_pipe[1]) == -1) _exit(1); (void)close(vol_pipe[0]); + (void)strcpy(prname, "sb-vol"); (void)puts("Volume process started"); (void)signal(SIGTERM, signal_handler); blob - bb91908b4fbb21965cc9bcb2462655c446c8c6e0 blob + b233b9b2a9cd1c7be54d4d58ad0955602d985fdc --- src/main.c +++ src/main.c @@ -103,6 +103,7 @@ main(int argc, char *argv[]) int i; ssize_t n; + (void)argc; (void)setvbuf(stdout, NULL, _IOLBF, 0); install_signal_handlers(); @@ -119,8 +120,8 @@ main(int argc, char *argv[]) timespecadd(&now, &weather_interval, &clocks[WEATHER_CLOCK]); get_clock(); - batt_pid = start_privileged_battery_process(&batt_fd, &battery_interval); - vol_pid = start_volume_process(&vol_fd); + batt_pid = start_privileged_battery_process(&batt_fd, &battery_interval, argv[0]); + vol_pid = start_volume_process(&vol_fd, argv[0]); get_cputemp(); get_fanspeed(); get_initial_network_state();