c++ - How to send a signal to all process from child process? -


i 'm trying socket programming example using fork() call, problem is: when child process finished job, want kill other process. think if send singal others ... possible or 1 tell me way ?

an usual way of kill process group killpg() system call. man pages:

"killpg() sends signal sig process group pgrp."

along killpg(), get/setpgid might needed setup group properly.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -