DTTERMSUBPROCREAP(3)
π NAME π
DtTermSubprocReap is the main character here, and yes bestie, this is a library call page. It lets a DtTerm widget clean up after subprocess termination. π
β¨ SYNOPSIS β¨
#include &<Dt/Term.h>
void DtTermSubprocReap(
pid_t pid,
int *stat_loc);
π¦ DESCRIPTION π¦
The DtTermSubprocReap function lets DtTerm widgets function correctly in applications that have installed a SIGCHLD signal handler. Lowkey essential if you're doing your own signal-handler thing and still want the widget to behave. β¨
- The
pidargument specifies the process ID of the child processwait(2)returns. - The
stat_locargument specifies the termination informationwait(2)returns.
π RETURN VALUES π
The DtTermSubprocReap function returns no value. That's it β no return-value drama, bestie. π«Ά
πΈ APPLICATION USAGE πΈ
The DtTermSubprocReap function allows an application to install its own SIGCHLD signal handler.
Here's the important stuff, no cap:
- The application must install its own
SIGCHILDsignal handler and callDtTermSubprocReapif theDtTermwidget was created with theDtSubprocessTerminatorCatchresource set toFalse. - The application must call the
DtTermSubprocReapfunction after performing await(2)(or associated function) on a terminated child process. - If the child process is associated with a
DtTermwidget, the widget's data structures are cleaned up and the associated callbacks invoked.
spelling tea: this page usesSIGCHLDin the description andSIGCHILDin application usage. I'm keeping both exactly as written β signal names are not a place to freestyle, bestie. π«Ά
π₯ SEE ALSO π₯
You already know the cross-refs: Dt/Term.h β DtTerm(5), DtTerm(3), signal(5), wait(2).
That's the whole page, bestie! Footer note: this copy only carries the library call footer label β there's no extra source/version or date info to report, so no invented metadata, periodt. π
π¦ where this page comes from
- nixos 26.05: cde 2.5.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms