Sponsored Content
Full Discussion: waitpid and grandchildren
Top Forums Programming waitpid and grandchildren Post 302643215 by kshots on Friday 18th of May 2012 04:25:48 PM
Old 05-18-2012
Hmm... actually, I just found that a solution should present itself in the 3.4 kernel, when it comes out. I can't post a URL with where I got this from (because apparently I need 5 posts for that), but here's a quote from the API changes page:
Quote:
The PR_SET_CHILD_SUBREAPER prctl() operation allows a "service manager" process to mark itself as a sort of 'sub-init', able to stay as the parent for all orphaned processes created by the started services. All SIGCHLD signals will be delivered to the service manager. There is a corresponding PR_GET_CHILD_SUBREAPER prctl() operation. Planned users of this feature include D-Bus and systemd.
This User Gave Thanks to kshots For This Post:
 

3 More Discussions You Might Find Interesting

1. Programming

problems with FORK() and WAITPID()

Dear All, I'm trying to write multithreading TCP Daemon which executes external program when new network connection arrives on a socket. After accept() I'm doing fork() for initiating of new child process, in which will be executed external program. After child creation I'm doing fork() again,... (3 Replies)
Discussion started by: Polkovnik
3 Replies

2. Programming

waiting for multiple childs - C - waitpid

Hi gurus, I would like to fork more children and then write their return values: so far I tried: #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <unistd.h> #include <sys/types.h> #include <sys/wait.h> int main(void) { pid_t pid; int rv=0, i; ... (5 Replies)
Discussion started by: wakatana
5 Replies

3. Programming

[C]Fork and waitpid

Hi folks, I am writing a simple program to understand how fork() and waitpid works, but it doesn't seem that is working like I wanted. if(fork()==0){ //el hijo pid1=getpid(); printf("\nSoy el hijo %d",pid1); }else { //el padre if (fork()==0) { //el hijo pid2=getpid();... (2 Replies)
Discussion started by: lamachejo
2 Replies
lvmpud(1M)																lvmpud(1M)

NAME
lvmpud - LVM daemon handling online shared volume group reconfiguration SYNOPSIS
DESCRIPTION
is the daemon that handles LVM online shared volume group reconfiguration. Only users with sufficient privileges can run this daemon. The online reconfiguration of shared volume groups is available on volume groups version 2.1 and higher. The daemon is automatically started when the system boots if is in the file. To manually start have in then enter To manually stop enter Only one instance of the daemon can run on a system. An attempt to start a second instance would fail. Options The following options are supported: Display the usage of Log informational messages in the system log. See syslogd(1M). Log debug messages in the system log. See syslogd(1M). Shared Volume Group Considerations Note that the daemon must be running on all the nodes sharing a volume group activated in shared mode. LVM shared mode is currently only available in Serviceguard clusters. AUTHOR
was developed by the Hewlett-Packard Company. SEE ALSO
lvchange(1M), lvcreate(1M), lvextend(1M), lvmerge(1M), lvreduce(1M), lvremove(1M), lvsplit(1M), pvmove(1M), syslogd(1M), vgextend(1M), vgmodify(1M), vgmove(1M), vgreduce(1M). lvmpud(1M)
All times are GMT -4. The time now is 02:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy