Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
c++ process control
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Marcofras
n00b
n00b


Joined: 29 May 2023
Posts: 27

PostPosted: Fri Nov 22, 2024 10:48 am    Post subject: c++ process control Reply with quote

i need to execute an instruction when a process (identificate with the name) in background terminate.
Back to top
View user's profile Send private message
bstaletic
Guru
Guru


Joined: 05 Apr 2014
Posts: 378

PostPosted: Fri Nov 22, 2024 12:30 pm    Post subject: Reply with quote

If you have the process' PID, then you can waitpid() on it.
Anything more than that will require you to provide us with more context.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum