signal handler information
- From: "Clancy, Shane W." <SCLANCY northropgrumman com>
- To: "'gnome-devel-list gnome org'" <gnome-devel-list gnome org>
- Subject: signal handler information
- Date: Mon, 18 Mar 2002 10:54:05 -0800
all,
i would like to set up a signal handler for something like this:
void
on_button_foo_clicked (GtkButton *button,
gpointer user_data)
{
declarations
if (GTK_TOGGLE_BUTTON(bar_button)->active)
{
fork;
child_does_task;
child_writes_info_to_disk_file;
child_dies;
}
if (GTK_TOGGLE_BUTTON(blah_button)->active)
{
fork;
child_does_task;
child_writes_info_to_disk_file;
child_dies;
}
if (GTK_TOGGLE_BUTTON(blah_blah_button)->active)
{
fork;
child_does_task;
child_writes_info_to_disk_file;
child_dies;
}
parent_notified_that_child_process_bar_died;
parent_reads_disk_file;
parent_displays_info_in_gnome_widget;
parent_notified_that_child_process_blah_died;
parent_reads_disk_file;
parent_displays_info_in_gnome_widget;
}
i would need to know when each child died, and i would need to buffer this
handler so that i would
not miss blah's signal if i am still working on bar.
can someone tell me where i should be looking for examples or tutorials on
how to do this?
thank you,
shane
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]