Sponsored Content
Full Discussion: waitpid and grandchildren
Top Forums Programming waitpid and grandchildren Post 302643965 by otheus on Monday 21st of May 2012 04:21:49 AM
Old 05-21-2012
That's very cool.
 

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
Gtk2::Object(3) 					User Contributed Perl Documentation					   Gtk2::Object(3)

NAME
Gtk2::Object HIERARCHY
Glib::Object +----Glib::InitiallyUnowned +----Gtk2::Object METHODS
object = Gtk2::Object->new ($object_class, ...) o $object_class (string) package name of object to create o ... (list) of property-name => value pairs Create a new object of type $object_class, with some optional initial property values. You may see this used in some code as Gtk2::Widget->new, e.g. $window = Gtk2::Widget->new ('Gtk2::Window', title => 'something cool', allow_grow => TRUE); This is really just a convenience function that wraps Glib::Object->new. boolean = $object->bindings_activate ($keyval, $modifiers) o $keyval (integer) o $modifiers (Gtk2::Gdk::ModifierType) Although "activate" and "activate_event" are "Gtk2::Object" methods, as of Gtk 2.12 they will only actually invoke signals on a "Gtk2::Widget". On a "Gtk2::Object" the return is always false (no binding activated). boolean = $object->bindings_activate_event ($event) o $event (Gtk2::Gdk::Event) $object->destroy This is an explicit destroy --- NOT the auto destroy; Gtk2::Object inherits that from Glib::Object! PROPERTIES
'user-data' (gpointer : readable / writable / private) Anonymous User Data Pointer SIGNALS
destroy (Gtk2::Object) ENUMS AND FLAGS
flags Gtk2::Gdk::ModifierType o 'shift-mask' / 'GDK_SHIFT_MASK' o 'lock-mask' / 'GDK_LOCK_MASK' o 'control-mask' / 'GDK_CONTROL_MASK' o 'mod1-mask' / 'GDK_MOD1_MASK' o 'mod2-mask' / 'GDK_MOD2_MASK' o 'mod3-mask' / 'GDK_MOD3_MASK' o 'mod4-mask' / 'GDK_MOD4_MASK' o 'mod5-mask' / 'GDK_MOD5_MASK' o 'button1-mask' / 'GDK_BUTTON1_MASK' o 'button2-mask' / 'GDK_BUTTON2_MASK' o 'button3-mask' / 'GDK_BUTTON3_MASK' o 'button4-mask' / 'GDK_BUTTON4_MASK' o 'button5-mask' / 'GDK_BUTTON5_MASK' o 'super-mask' / 'GDK_SUPER_MASK' o 'hyper-mask' / 'GDK_HYPER_MASK' o 'meta-mask' / 'GDK_META_MASK' o 'release-mask' / 'GDK_RELEASE_MASK' o 'modifier-mask' / 'GDK_MODIFIER_MASK' SEE ALSO
Gtk2, Glib::Object, Glib::InitiallyUnowned COPYRIGHT
Copyright (C) 2003-2008 by the gtk2-perl team. This software is licensed under the LGPL. See Gtk2 for a full notice. perl v5.12.1 2010-07-05 Gtk2::Object(3)
All times are GMT -4. The time now is 12:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy