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
Post a Comment