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 -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -